I was able to build a release-apk successfully in android studios.
My app uses some services from Google like Google App Invites and Google Places for Android.
To get these services, I had to register a API key on the google developers console which looks like this:
I'm unsure about the package name and SHA-1 fingerprint section of getting an API key.
If I have both a debug and a release version of my app (let's say the package name is com.myapp), do I put in the com.myapp as the package name twice but set the release and debug SHA-1 respectively for each package name?
So:
com.myapp (SHA-1 fingerprint) S1:2D:3F etc
com.myapp (SHA-1 fingerprint) D2:1W:2V etc
I tried to do that but so far the release version of the app does not seem to want to work at all.
APP_INVITE says:
No Android client ID is found for package name com.myapp. (APPINVITE_CLIENT_ID_ERROR)
PLACES AUTOCOMPLETE says:
Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_INVALID_APP, resolution=null}