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

Stack Overflow | andrei_zaitcev | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rp . Or join the community to write better ones.
  1. 0

    Google Awareness API SecurityException is thrown

    Stack Overflow | 8 months ago | andrei_zaitcev
    java.lang.SecurityException: Invalid API Key for package = [package_name] .Status code received = -1
  2. 0

    Is geofencing completely unusable in Android?

    Stack Overflow | 3 months ago | Bruno Bronosky
    java.lang.SecurityException: Invalid API Key for package = de.stocard.stocard .Status code received = -1
  3. 0
    samebug 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 goo.gl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.
  6. 0

    Missing permission to control media error on Android 5/L

    Stack Overflow | 2 years ago | Kevin
    java.lang.SecurityException: Missing permission to control media.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    Invalid API Key for package = [package_name] .Status code received = -1

    at android.os.Parcel.readException()
  2. Android Platform
    Parcel.readException
    1. android.os.Parcel.readException(Parcel.java:1540)
    2. android.os.Parcel.readException(Parcel.java:1493)
    2 frames
  3. com.google.android
    zzpw$zzf.run
    1. com.google.android.gms.common.internal.zzu$zza$zza.zza(Unknown Source)
    2. com.google.android.gms.common.internal.zzd.zzqz(Unknown Source)
    3. com.google.android.gms.internal.zzpw$zzc.zzapl(Unknown Source)
    4. com.google.android.gms.internal.zzpw$zzf.run(Unknown Source)
    4 frames
  4. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    4 frames
  5. com.google.android
    zzrn.run
    1. com.google.android.gms.internal.zzrn.run(Unknown Source)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:818)
    1 frame