简体   繁体   English

从Play商店安装应用时,拆分APK丢失

[英]Split APK missing when installing app from Play Store

Recently we released our application on Play Store using Android Application Bundle. 最近,我们使用Android应用程序捆绑包在Play商店上发布了我们的应用程序。 Our app has a native library and of course some resources. 我们的应用程序具有本地库,当然还有一些资源。 When installing Play Store will put language specific resources and platform specific library in a separate split APKs. 安装Play商店时,会将特定于语言的资源和特定于平台的库放在单独的拆分APK中。

There are some crashes reported with missing native library and/or missing resources. 报告了一些崩溃,其中缺少本机库和/或缺少了资源。 I don't see any common things among all these crashes and I can't reproduce it. 在所有这些崩溃中,我看不到任何共同之处,也无法重现。

Is it possible that the app will be only partially installed due to some network or space issues? 是否可能由于某些网络或空间问题而仅部分安装该应用程序? Why it's not detected by system installer and are there any ways to detect it? 为什么系统安装程序未检测到它,并且有什么方法可以检测到它?

There could be various reasons for Resources$NotFoundException: Resource ID, in case of app bundles : Resources $ NotFoundException可能有多种原因:如果是应用程序捆绑包,则为资源ID:

  1. Drawable resource is not present in correct directory, adding resource in default drawable directory or in all respective drawable directories like ldpi, mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi may solve it: detailed answer 可绘制资源不在正确的目录中,可以在默认可绘制目录或所有相应的可绘制目录(例如ldpi, mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi添加资源ldpi, mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi可以解决此问题: 详细答案

  2. Your app is side loaded ie instead of downloading the app from a legitimate app store, it is shared between users. 您的应用是侧面加载的,即,它不是在合法的应用商店中下载应用,而是在用户之间共享。 In such a case the apk shared would have resources only specific to that device: detailed answer 在这种情况下,共享的apk将仅具有特定于该设备的资源: 详细答案

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

相关问题 Android:安装APK后从Play商店重定向到Android应用 - Android: Redirect to android app from play store when apk is installed 从Google Play安装时隐藏apk - Hide apk when installing from Google Play 从 Google Play 商店安装应用程序时的 onActivityResult 回调 - onActivityResult callback when installing an app from Google Play Store 从 Play 商店下载时应用程序未加载但安装生成的 APK 工作正常 - Application not loading when downloaded from Play Store but installing the generated APK works fine 应用程序未从 Play 商店安装在某些设备中 - App not installing in some devices from play store 将APK直接放到手机上,但从Google Play商店中取出后,我的应用程序崩溃 - My app works when apk put directly onto phone but when taken from Google Play store it crashes 应用程序作为 APK 运行,但通过 Play 商店发布时崩溃 - App working as an APK but when released through play store it crashes 无法从Play商店启动应用,但apk运行正常 - No way to start app from Play-Store, but apk runs fine APK 版本未从 Play 商店更新已安装的 AAB 应用 - APK release not update installed AAB app from Play Store 从Google Play商店安装应用后,应用崩溃 - App crashes after installing app from Google Play Store
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM