1. Are you ready for the Galaxy S20? Here is everything we know so far!

Build debug vs release

Discussion in 'Android Lounge' started by Yixun, Oct 1, 2020.

  1. Yixun

    Yixun Lurker
    Thread Starter

    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
     


  2. Alexenferman

    Alexenferman Member

    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.
     
    Davdi likes this.
Loading...
Similar Threads - Build debug release
  1. Pravinkumar Putta
    Replies:
    2
    Views:
    641
  2. Watsonhank
    Replies:
    0
    Views:
    618
  3. Samsung
    Replies:
    0
    Views:
    226
  4. ajaymehta32
    Replies:
    3
    Views:
    654
  5. skfl
    Replies:
    0
    Views:
    504
  6. Stokestack
    Replies:
    3
    Views:
    1,354
  7. caatalyst
    Replies:
    25
    Views:
    2,148
  8. stanlive2020
    Replies:
    2
    Views:
    1,281
  9. Ismael López Quintero
    Replies:
    1
    Views:
    357

Share This Page

Loading...