-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android APK was rejected by Google Play because it's debuggable #2575
Comments
Adding |
@ahumesky can you take a look please? |
--compilation_mode=opt (or -c opt for short) should set the debuggable flag to false, among other optimizations. We're revamping our android documentation and we'll be sure to mention this. |
|
whoops, that's a typo, there should be a space between -c and opt ("-c opt") (i edited my comment above) |
|
Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.
Description of the problem / feature request / question:
I have an android_binary rule, and generated
app_unsigned.apk
file from the rule.Then I signed it with my release key per instructions on #1613, as:
When I try to publish the generated
app.apk
file on Google Play, it was rejected as "You uploaded a debuggable APK".Bazel should provide a way to generate undebuggable APKs.
If possible, provide a minimal example to reproduce the problem:
Environment info
Operating System:
macOS 10.12.3
Bazel version (output of
bazel info release
):release 0.4.4-homebrew
If
bazel info release
returns "development version" or "(@non-git)", please tell us what source tree you compiled Bazel from; git commit hash is appreciated (git rev-parse HEAD
):Have you found anything relevant by searching the web? (e.g. GitHub issues, email threads in the bazel-discuss@googlegroups.com archive)
Anything else, information or logs or outputs that would be helpful?
(If they are large, please upload as attachment or provide link).
The text was updated successfully, but these errors were encountered: