Missing API Key when try to downloadSchema in Android project

I try to download schema using gradle task downloadSchema but failed and the log said that I missed the API Key. Whereas, I have put APOLLO_KEY and APOLLO_GRAPH in my apollo service configuration. Anyone can help?