Questions about driving differences when installing Android Marshmallow version markets and studios

Asked 2 years ago, Updated 2 years ago, 95 views

Hello, seniors.

I have a question regarding the Android Marshmallow version response.

First of all, there is no problem with this app from lollipop to its lower version.

However, there is a problem from the marshmallow version.

The strange thing about this is that all functions work normally when installed through Android Studio

Whether it is distributed and installed in the market or installed with a release file extracted with APK.

If I log in on the first screen, the black screen will not work after that.

The reason I'm thinking about now is that in the process of logging in or entering a new screen,

I think it's a matter of authority, but I haven't solved it yet.

If you have any similar experiences during the development process, please advise.

It's getting very cold, so be careful not to catch a cold and have a good day.

android android-studio version install

2022-09-21 18:11

1 Answers

Check to see what targetSdkVersion is set to in build.gradle. If it's below 22, even if the phone's OS version is marshmallow, it will operate as if it was run in a lower version of the environment (Lollipop). If the targetSdkVersion is specified as 23 or higher, you must add a code corresponding to the runtime permission. Of course, not doing anything related to permission does not mean that the black screen will not work (the app will be forced to shut down due to the occurrence of the extention, the app will be forced to shut down

If the targetSdkVersion is 23 or higher, it may be a side effect due to the authority issue or another problem. Since it is not a common situation to fail with a black screen, it is the fastest way to find the problem by debugging it directly. If it only occurs in a release build, temporarily change the debuggable setting of build.gradle to true so that it can be debugged in the release build.

release {
    debuggable true
     ...
}


2022-09-21 18:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.