简体   繁体   中英

Android App Bundle crashes after downloading from PlayStore on some devices

My app runs fine on all devices when installed via usb. But when i upload the app bundle of my app to Google play, it does not work on some devices. And there is no crash report in Firebase Crashlytics.

I use native c++ library. I have all binaries for 32 and 64 bit processors. I thought it was the issue with 32 bit devices. But it also happens on 64 bit devices. I notice that it occurs only on devices with API 23. I upgraded one of my phones from 23 to 24 (Android 7.0). Then again downloaded the app from store. Now it works fine on that device.

I used to provide multiple APKs to PlayStore before. Everything was working fine then. Later i have migrated to AndroidX and App Bundle. Then this problems has arisen. What can be the problem? Any guess?

*** I have found that it is Renderscript problem. Log says

"java.lang.RuntimeException: Unable to create application com.example.app.ThisApplication: androidx.renderscript.RSRuntimeException: Loading of ScriptC script failed"

Why is this happening only after downloaded from PlayStore ???

崩溃日志:

I think this is related to this known issue: https://issuetracker.google.com/issues/135865273

The recommended workaround at the moment is to set the following property in your gradle.properties file:

android.bundle.enableUncompressedNativeLibs=false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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