Compile APK without DEBUG

chuckyegg

Member
Licensed User
Longtime User
[SOLVED] Compile APK without DEBUG

Hi guys,

I'm using v1.80 and I can't see how to compile an APK without the debugging stuff included.

The v1.50 guide (http://www.b4x.com/forum/basic4andr...debugging-android-applications.html#post50178) says don't distribute the _DEBUG.apk

In v1.80 there are no "Include debug info" and "Attach debug" options. If you click the debug icon in the IDE to turn it off it just gets turned back on next time.

How do I make a debug-free APK?

Thanks
 
Last edited:

ta1dr

Member
Licensed User
Longtime User
Hi guys,

I'm using v1.80 and I can't see how to compile an APK without the debugging stuff included.

The v1.50 guide (http://www.b4x.com/forum/basic4andr...debugging-android-applications.html#post50178) says don't distribute the _DEBUG.apk

In v1.80 there are no "Include debug info" and "Attach debug" options. If you click the debug icon in the IDE to turn it off it just gets turned back on next time.

How do I make a debug-free APK?

Thanks

you can select "release" you can see right of the run button combobox and select
 
Upvote 0

Kiffi

Well-Known Member
Licensed User
Longtime User
take a look at the attached image :)

Greetings ... Kiffi
 

Attachments

  • 2012-01-19_115646.png
    2012-01-19_115646.png
    3.6 KB · Views: 1,260
Upvote 0

School Boy Error

Member
Licensed User
Longtime User
Can I compile the file without running? I just want the APK on my computer so I can distribute it. I'm using version 1.8 and I've selected release at the top but in the project I only have Compile and Run or Compile without signing, surely though I need to sign it (with the private key I've set)?!
 
Upvote 0

fbritop

Active Member
Licensed User
Longtime User
APK's Location

Kiffi,
I am using version 1.92 (registered). I have tried all types of compile and none of them are creating the APK file. I'am running with the release setup.

The Objects directory online contains AndroidManifest.xml and classes.dex, no .APK file anywhere.

Where should I look for it??

Thanks
FBP
take a look at the attached image :)

Greetings ... Kiffi
 
Upvote 0

lagore

Active Member
Licensed User
Longtime User
It has to be in the Objects folder, make sure you have connected a device/emulator. If your package name has a space in it it the apk will not be called after your package, it is called 'result_DEBUG.apk'.
 
Upvote 0

Yafuhenk

Active Member
Licensed User
Longtime User
And even without a device or emulator connected you can press the ´run´ button. You will ofcourse get an error that no device is connected but the compiled apk file can be found in the Objects directory.

Henk
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Hi Mike,
Just for your information.
The selection of the compile mode was in the beginning in the Project menu.
In B4A version 1.8 it moved to a drop down listbox in the menu toolbar.
This move confused some users.

Best regards.
 
Upvote 0
Top