简体   繁体   English

Android 9 更新到 targetSDK 31 后重新启动

[英]Android 9 reboots after update to targetSDK 31

Since i updated my app to complie/tragetSDK 31 it is totaly crashing exclusively android 9 devices, the devices and the emulator is restarting if i try to start the app, the only log i got from the play store pre launch report was由于我将我的应用程序更新为 complie/tragetSDK 31,它完全崩溃了 android 9 个设备,如果我尝试启动应用程序,设备和模拟器正在重新启动,我从 Play 商店预发布报告中获得的唯一日志是

Fatal AndroidRuntime Exception detected.检测到致命的 AndroidRuntime 异常。 (on a Pixel 3 with Android 9) (在带有 Android 9 的 Pixel 3 上)

i also implemented the new splashscreen according to the official guide i could find nothing on this here on SO, have you experienced this?我还根据官方指南实施了新的启动画面,我在这里找不到任何东西,你经历过吗? i updated the build tools (32-rc1) and Android Studio to the latest verrsion.我将构建工具 (32-rc1) 和 Android Studio 更新到最新版本。

here are my dependencies, except for room and billing all the latest version这是我的依赖项,除了房间和计费所有最新版本

    implementation project(path: ':FitChart')
    implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.0'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'

    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.4.0'
    implementation "androidx.fragment:fragment-ktx:1.4.0"
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
    implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test:runner:1.4.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

    implementation 'androidx.core:core-splashscreen:1.0.0-alpha02'

    def nav_version = "2.3.5"
    implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
    implementation "androidx.navigation:navigation-ui-ktx:$nav_version"

    implementation 'androidx.viewpager:viewpager:1.0.0'

    implementation 'androidx.work:work-runtime-ktx:2.7.1'

    implementation 'com.android.billingclient:billing:3.0.3'

    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'

    implementation 'io.github.kexanie.library:MathView:0.0.6'

    def room_version = '2.2.6'
    implementation "androidx.room:room-runtime:$room_version"
    kapt "androidx.room:room-compiler:$room_version"

    implementation 'androidx.recyclerview:recyclerview:1.2.1'
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

    implementation "androidx.concurrent:concurrent-futures:1.1.0"

    implementation 'com.mikhaellopez:circularprogressbar:3.0.3'

    implementation 'com.github.ueen:RoomAssetHelper:1.1'

    implementation 'com.google.code.gson:gson:2.8.6'

    implementation 'com.github.sephiroth74:NumberSlidingPicker:1.0.3'

    implementation 'com.github.divyanshub024:AndroidDraw:v0.1'

    implementation('com.journeyapps:zxing-android-embedded:4.2.0') { transitive = false }
    implementation 'com.google.zxing:core:3.3.0'

    implementation 'com.github.ueen:slush:1.2.4.1'

    implementation 'com.github.fondesa:recycler-view-divider:3.5.0'

    implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'

    implementation 'com.squareup.picasso:picasso:2.71828'

UPDATE The new Slpashscreen is causing the issue, The Splashscreen Theme in styles in the MainActivity is causing the crash, if its changed to the actual AppTheme the app starts on Android 9!更新新的 Slpashscreen 导致了问题,MainActivity 中 styles 中的 Splashscreen 主题导致崩溃,如果将其更改为实际的 AppTheme,则应用程序在 Android 9 上启动!

UPDATE The new Slpashscreen is causing the issue, The Splashscreen Theme in styles in the MainActivity is causing the crash, if its changed to the actual AppTheme the app starts on Android 9?更新新的 Slpashscreen 导致了问题,MainActivity 中 styles 中的 Splashscreen 主题导致崩溃,如果它更改为实际的 AppTheme 应用程序在 Android 9 上启动? This seems like a major oversight, isnt the point of androidx to make the new splashscreen backwards compatible, it does work on Android 10.11.12 with no issue...这似乎是一个重大疏忽,androidx 的目的不是使新的启动画面向后兼容,它确实可以在 Android 10.11.12 上正常工作...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM