I'm getting below error while trying to upload new APK file.
Upload failed
You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.
I'm getting below error while trying to upload new APK file.
Upload failed
You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.
In my case I had to add android:debuggable="false" into manifest.. Worked even without few days ago.
signed / un-signed apk
from Android tools in project properties in eclipse. Never use a build generated in project/bin
directory for production. This answer is no correct at all. –
Libreville If you're using Android Studio, the simplest way is to open the "Build Variant" toolbar on the left bottom and change it from "Debug" to "Release" then "Build" -> "Generated Signed APK".
In my case I had to add android:debuggable="false" into manifest.. Worked even without few days ago.
signed / un-signed apk
from Android tools in project properties in eclipse. Never use a build generated in project/bin
directory for production. This answer is no correct at all. –
Libreville If you using maven and android-maven-plugin, add this to plugin configuration
<configuration>
<release>true</release>
</configuration>
Please note, even if you have a release entry in your gradle build with debuggable false, if debuggable is set to true in the AndroidManifest.xml, it will still fail to upload. Found a random subproject in mine that had it set to true even though the gradle build file was false for all sub projects.
In case someone still looking the answer. I had similar problem. In my case Google Api error was: Google Api Error: apkNotificationMessageKeyDebuggable: APK is marked as debuggable. - APK is marked as debuggable.
During investigation I've found that inside BuildConfig.java
file DEBUG
constant equals true
even though BUILD_TYPE == release
. After several hours I've found this thread. So in my case the problem was in jacoco. After removing testCoverageEnabled = true
for release build, DEBUG
became false
again.
© 2022 - 2024 — McMap. All rights reserved.