java.lang.SecurityException

Invalid API Key for package = com.test.awarenesstests .Status code received = 6

Samebug tips5

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()


rafaelrafael

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1297

Stack trace

  • java.lang.SecurityException: Invalid API Key for package = com.test.awarenesstests .Status code received = 6 at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1499) at com.google.android.gms.common.internal.zzu$zza$zza.zza(Unknown Source) at com.google.android.gms.common.internal.zzd.zza(Unknown Source) at com.google.android.gms.internal.zzqb$zzc.zzapi(Unknown Source) at com.google.android.gms.internal.zzqb$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 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at com.google.android.gms.internal.zzrs.run(Unknown Source) at java.lang.Thread.run(Thread.java:818)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown UserUnknown User
2 times, last one
Indri YunitaIndri Yunita
2 times, last one
franky lifranky li
4 times, last one
Ranjana DangolRanjana Dangol
12 times, last one
Hiren AmaliyarHiren Amaliyar
669 times, last one
232 more bugmates