简体   繁体   English

在某些设备上从 PlayStore 下载 Android App Bundle 后崩溃

[英]Android App Bundle crashes after downloading from PlayStore on some devices

My app runs fine on all devices when installed via usb.通过 USB 安装时,我的应用程序在所有设备上运行良好。 But when i upload the app bundle of my app to Google play, it does not work on some devices.但是当我将应用程序的应用程序包上传到 Google Play 时,它在某些设备上不起作用。 And there is no crash report in Firebase Crashlytics. Firebase Crashlytics 中没有崩溃报告。

I use native c++ library.我使用本机 C++ 库。 I have all binaries for 32 and 64 bit processors.我有 32 位和 64 位处理器的所有二进制文件。 I thought it was the issue with 32 bit devices.我以为是 32 位设备的问题。 But it also happens on 64 bit devices.但它也发生在 64 位设备上。 I notice that it occurs only on devices with API 23. I upgraded one of my phones from 23 to 24 (Android 7.0).我注意到它只发生在具有 API 23 的设备上。我将我的一部手机从 23 升级到 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.我以前曾向 PlayStore 提供多个 APK。 Everything was working fine then.那时一切正常。 Later i have migrated to AndroidX and App Bundle.后来我迁移到了 AndroidX 和 App Bundle。 Then this problems has arisen.那么这个问题就出现了。 What can be the problem?可能是什么问题? Any guess?有什么猜想吗?

*** I have found that it is Renderscript problem. *** 我发现这是 Renderscript 问题。 Log says日志说

"java.lang.RuntimeException: Unable to create application com.example.app.ThisApplication: androidx.renderscript.RSRuntimeException: Loading of ScriptC script failed" “java.lang.RuntimeException:无法创建应用程序 com.example.app.ThisApplication:androidx.renderscript.RSRuntimeException:ScriptC 脚本加载失败”

Why is this happening only after downloaded from PlayStore ???为什么只有从 PlayStore 下载后才会发生这种情况???

崩溃日志:

I think this is related to this known issue: https://issuetracker.google.com/issues/135865273我认为这与这个已知问题有关: https : //issuetracker.google.com/issues/135865273

The recommended workaround at the moment is to set the following property in your gradle.properties file:目前推荐的解决方法是在 gradle.properties 文件中设置以下属性:

android.bundle.enableUncompressedNativeLibs=false

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

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