How to generate an APK without DEBUG in Intellij IDEA?

Asked

Viewed 502 times

3

I just migrated my projects from Eclipse to Intellij IDEA (is the same as Androidstudio uses, but with some small differences).

Yet every time I click Build > Build Apk it generates an APK with "debug enabled".

From what I’ve been reading the property android:debuggable="true" not supported since 2010.

How can I generate APK?

  • I may be wrong (or not), but I think the mode "no Debugger" is only when the app is signed, hence you have one. apk to send to the play store. You can’t send an unsigned app (hence it’s like Debugger). Ps.: How do you know you are debugging active?

  • @Carlosbridi I’m not sure but I think this is because it generates two files like this app-debug.apk and app-debug-unaligned.apk, how I made this app for company use I can not make available in the playstore :/

  • If you go to Build, you will have two options: Build APK and a Generated Signed APK. You can generate a subscription for you to have in the company (and associate it with your project there in Project Strucutre > Aba Signing - add a new one), preventing others from generating a production apk without your authorization (or whoever has the password) and test if it will generate an apk without debug mode.

  • Ps.: I will post as response, if it really is, let me know, if not then I remove the answer

1 answer

0

I think the "no Debugger" mode is only when the app is signed, so you have a . apk to send to the play store. You can’t send an app to the store without it being signed (hence it is as Debugger).

Create a signature for it and associate to the project there in:

Right click on the Project:

Open Module Settings > Signing

Add a signature and link the file. jks at that time your project will be signed and you can release to users, to return to development, remove the subscription and later turn it on again, when to release a new realese.

  • Thanks, I’ll try it out, as soon as the package update on sdk is over :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.