2

Working with debug build variant, my app works just fine. However, when I sign the app and install it, it starts with a black screen. This is what I have in build.gradle:

    buildTypes {
    release {
        minifyEnabled true
        debuggable false
        proguardFiles getDefaultProguardFile('proguard-android.txt'),
                'proguard-rules.pro'
    }

    debug {
        minifyEnabled false
        debuggable true
        proguardFiles getDefaultProguardFile('proguard-android.txt'),
                'proguard-rules.pro'
    }
}

Weird thing is, if i set debuggable true in release, there's no black screen and the app works just fine again. But the problem is I cannot publish an app with debuggable flag set to true.

I'm completely stuck and could not find any similar issue. Any help would be really appreciated.

As I said, I cannot even debug with the release version, since the problem happens when debuggable is false.

moyo
  • 1,312
  • 1
  • 13
  • 29
  • you are using proguard, with proguard false it is working on release? – Pavel Poley Oct 09 '18 at 17:54
  • Just tried with minifyEnabled false and debuggable false, and it doesn't work either. So the problem is setting debuggable as false, apparently...I really don't get it. Any hint? – moyo Oct 09 '18 at 18:42
  • what need to be displayed on the screen? what kind of widgets? maybe map or other third api's? – Pavel Poley Oct 09 '18 at 18:48
  • It's an Activity with a DrawerLayout and NavigationView, which has inside a RecyclerView. Each RecyclerView item loads a different Fragment. There's really nothing weird inside the Fragment, maybe it has to do with any third party library I use? In this case, I use SmoothRefreslLayout https://github.com/dkzwm/SmoothRefreshLayout – moyo Oct 09 '18 at 18:55
  • what theme you are using? – Pavel Poley Oct 09 '18 at 19:03
  • `````` – moyo Oct 09 '18 at 19:11

0 Answers0