提问人:Phil Lucks 提问时间:11/14/2023 最后编辑:Phil Lucks 更新时间:11/14/2023 访问量:22
AAB 应用商店安装在物理设备上崩溃,但下载可用的 APK 就没问题了
AAB appstore install crashes on physical device, but download the APK available and it's fine
问:
在尝试调试几天后,不确定后续步骤是什么。
我正在使用 Expo 和 EAS 来创建我的构建。iOS 上的一切都很棒。在Android上的模拟器和物理设备上进行本地测试后,我手动将AAB文件上传到PlayStore。它得到了批准,我开始了“封闭测试”轨道。我已将测试用户帐户登录到物理设备上的 Google Play 商店。我从 Google 获得用于测试的链接,并成功安装在我的设备上。一旦我打开应用程序,它就会崩溃。
日志对我来说很神秘。logcat
V ANGLE Developer option for 'com.identafly.production' set to: 'default'
2023-11-12 23:15:15.552 24656-24656 GraphicsEnvironment pid-24656 V ANGLE GameManagerService for com.identafly.production: false
2023-11-12 23:15:15.816 24656-24656 LoaderFiles pid-24656 E Failed to copy asset null
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:226)
at android.content.res.ResourcesImpl.openRawResource(ResourcesImpl.java:341)
at android.content.res.Resources.openRawResource(Resources.java:1387)
at android.content.res.Resources.openRawResource(Resources.java:1331)
at expo.modules.updates.loader.LoaderFiles.copyResourceAndGetHash$expo_updates_release(LoaderFiles.kt:67)
at expo.modules.updates.loader.LoaderFiles.copyAssetAndGetHash(LoaderFiles.kt:34)
at expo.modules.updates.loader.EmbeddedLoader.loadAsset(EmbeddedLoader.kt:80)
at expo.modules.updates.loader.Loader.downloadAllAssets(Loader.kt:233)
at expo.modules.updates.loader.Loader.processUpdateManifest(Loader.kt:196)
at expo.modules.updates.loader.Loader.access$processUpdateManifest(Loader.kt:25)
at expo.modules.updates.loader.Loader$start$1.onSuccess(Loader.kt:108)
at expo.modules.updates.loader.EmbeddedLoader.loadManifest(EmbeddedLoader.kt:58)
at expo.modules.updates.loader.Loader.start(Loader.kt:98)
at expo.modules.updates.loader.LoaderTask.launchFallbackUpdateFromDisk(LoaderTask.kt:261)
at expo.modules.updates.loader.LoaderTask.start(LoaderTask.kt:118)
at expo.modules.updates.UpdatesController.start(UpdatesController.kt:331)
at expo.modules.updates.UpdatesController$Companion.initialize(UpdatesController.kt:506)
at expo.modules.updates.UpdatesPackage$createReactNativeHostHandlers$handler$1.onWillCreateReactInstanceManager(UpdatesPackage.kt:46)
at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:27)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.identafly.production.MainApplication.onCreate(MainApplication.java:67)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6910)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2219)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:703)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
2023-11-12 23:15:15.816 24656-24656 Loader pid-24656 E Failed to download asset with key 8b1af259f13def23641ece26e56ba436
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:226)
at android.content.res.ResourcesImpl.openRawResource(ResourcesImpl.java:341)
at android.content.res.Resources.openRawResource(Resources.java:1387)
at android.content.res.Resources.openRawResource(Resources.java:1331)
at expo.modules.updates.loader.LoaderFiles.copyResourceAndGetHash$expo_updates_release(LoaderFiles.kt:67)
at expo.modules.updates.loader.LoaderFiles.copyAssetAndGetHash(LoaderFiles.kt:34)
at expo.modules.updates.loader.EmbeddedLoader.loadAsset(EmbeddedLoader.kt:80)
at expo.modules.updates.loader.Loader.downloadAllAssets(Loader.kt:233)
at expo.modules.updates.loader.Loader.processUpdateManifest(Loader.kt:196)
at expo.modules.updates.loader.Loader.access$processUpdateManifest(Loader.kt:25)
at expo.modules.updates.loader.Loader$start$1.onSuccess(Loader.kt:108)
at expo.modules.updates.loader.EmbeddedLoader.loadManifest(EmbeddedLoader.kt:58)
at expo.modules.updates.loader.Loader.start(Loader.kt:98)
at expo.modules.updates.loader.LoaderTask.launchFallbackUpdateFromDisk(LoaderTask.kt:261)
at expo.modules.updates.loader.LoaderTask.start(LoaderTask.kt:118)
at expo.modules.updates.UpdatesController.start(UpdatesController.kt:331)
at expo.modules.updates.UpdatesController$Companion.initialize(UpdatesController.kt:506)
at expo.modules.updates.UpdatesPackage$createReactNativeHostHandlers$handler$1.onWillCreateReactInstanceManager(UpdatesPackage.kt:46)
at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:27)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.identafly.production.MainApplication.onCreate(MainApplication.java:67)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6910)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2219)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:703)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
2023-11-12 23:15:15.907 24656-24656 Loader pid-24656 E Failed to load all assets
java.lang.Exception: Failed to load all assets
at expo.modules.updates.loader.Loader.handleAssetDownloadCompleted(Loader.kt:303)
at expo.modules.updates.loader.Loader.access$handleAssetD...
在GoogleConsole捆绑包详细信息中,我注意到我可以直接下载APK(从AAB生成)。所以我在物理设备上成功运行了该应用程序!
我还尝试在模拟器上从 AppStore 安装,效果很好。
AAB 和应用商店直装有什么区别?如果安装正确,链接安装不会与直接 APK 相同吗?
答: 暂无答案
评论