• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Build debug vs release

Yixun

Lurker
Hi,
I have a Samsung tablet.
My app was developed based on a native library.
The native library has a release build.

I use Android Studio to do development. I use debug-x86 as build variant and the app can run correctly on the device.
1. I am curious why the app can run correctly even the native code is built as release?
2. Which build variant should I use.
3. If I use release build variant, can the performance be improved?

Many thanks.

YL
 
Debug mode is used for debugging purposes. Your app will be slightly bigger and also slower in debug mode, because it has debug "files", and this will allow you to see how the app is behaving in the background, with all the log displayed in Android Studio. If you are planning to release the app, switch to release mode. Your app will be smaller in size, and it might run a bit faster.
 
Back
Top Bottom