java.lang.SecurityException: Invalid API Key for package = [package_name] .Status code received = -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
via android.com by Unknown author

You need to request READ_PHONE_STATE permissions before using of this method.

Solutions on the web

via Stack Overflow by andrei_zaitcev
, 1 year ago
Invalid API Key for package = [package_name] .Status code received = -1
via Stack Overflow by Bruno Bronosky
, 9 months ago
Invalid API Key for package = de.stocard.stocard .Status code received = -1
via GitHub by donelasurya
, 1 year ago
Unknown calling package name 'com.pickquick.maptest'.
via GitHub by jawadhussainmughal
, 6 months ago
Unknown calling package name 'com.facebook.katana'.
via GitHub by jawadhussainmughal
, 8 months ago
Unknown calling package name 'com.facebook.katana'.
via GitHub by reed-sap
, 1 year ago
Admin ComponentInfo{com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver} did not specify uses-policy for: disable-keyguard-features
java.lang.SecurityException: Invalid API Key for package = [package_name] .Status code received = -1
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
at com.google.android.gms.common.internal.zzu$zza$zza.zza(Unknown Source)
at com.google.android.gms.common.internal.zzd.zzqz(Unknown Source)
at com.google.android.gms.internal.zzpw$zzc.zzapl(Unknown Source)
at com.google.android.gms.internal.zzpw$zzf.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at com.google.android.gms.internal.zzrn.run(Unknown Source)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
5 times, 4 months ago
13 times, 1 year ago
31 times, 8 months ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.