Reputation: 703
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 ???
Upvotes: 2
Views: 2853
Reputation: 17437
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
Upvotes: 1