简体   繁体   English

从 Playstore 下载时 APK 崩溃 - 调试工作正常

[英]APK crashing when downloading from playstore - debug works fine

I'm currently having a strange issue with my android project.我的 android 项目目前有一个奇怪的问题。 When I debug my app or if I created a signed APK and install it on my phone, my app works fine.当我调试我的应用程序或创建一个签名的 APK 并将其安装在我的手机上时,我的应用程序运行良好。 However, after releasing it to play store and installing it from there, the app won't open.但是,将其发布到 Play Store 并从那里安装后,该应用程序将无法打开。 It will open with a blank black screen and just minimize itself on all the physical devices I've tested.它将以空白黑屏打开,并在我测试过的所有物理设备上最小化自身。 I can download from play store using bluestack and it runs fine, it just seems to be physical devices that it won't open on.我可以使用 bluestack 从 play store 下载,它运行良好,它似乎是无法打开的物理设备。

I'm currently seeing this error appearing in my dev console.我目前在我的开发控制台中看到此错误。

java.lang.ClassNotFoundException

dalvik.system.BaseDexClassLoader.findClass

java.lang.Error: FATAL EXCEPTION [main]
Unity version     : 2018.3.14f1
Device model      : samsung SM-G950F
Device fingerprint: samsung/dreamltexx/dreamlte:9/PPR1.180610.011/G950FXXS5DSJ1:user/release-keys
Caused by
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3574)
  at android.app.ActivityThread.access$1300 (ActivityThread.java:237)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1796)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7050)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
  at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:84)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3567) 

Just to add to this.. I am also seeing these crash logs:只是补充一下..我还看到了这些崩溃日志:

pid: 0, tid: 0 >>> club.piratetycoon.idleclicker <<<

backtrace:
  #00  pc 0000000000021d54  /system/lib64/libc.so (abort+124)
  #01  pc 00000000000a29dc  /system/lib64/libc.so (ifree+1212)
  #02  pc 00000000000a2b08  /system/lib64/libc.so (je_free+120)
  #03  pc 00000000007dc058  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #04  pc 00000000007d7894  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #05  pc 00000000007d7324  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #06  pc 00000000007d5c48  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #07  pc 00000000007d912c  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #08  pc 00000000007d8c10  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #09  pc 00000000007d8730  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #10  pc 00000000007d5414  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #11  pc 00000000004b2cac  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #12  pc 00000000002c1cf0  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #13  pc 000000000000d05c  /system/bin/app_process64 (art::SignalChain::Handler(int, siginfo*, void*)+348)
  #14  pc 000000000000069c  [vdso:0000007a1eec6000]
  #15  pc 00000000005356e0  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #16  pc 0000000000014d74  /system/bin/linker64 (__dl__Z18do_dl_iterate_phdrPFiP12dl_phdr_infomPvES1_+76)
  #17  pc 00000000000145e0  /system/bin/linker64 (__loader_dl_iterate_phdr+48)
  #18  pc 0000000000000f90  /system/lib64/libdl.so (dl_iterate_phdr+8)
  #19  pc 00000000005355e8  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #20  pc 0000000000502afc  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #21  pc 0000000000318580  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #22  pc 00000000002bf9a4  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #23  pc 00000000002c0040  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #24  pc 00000000002bb090  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/split_config.arm64_v8a.apk
  #25  pc 000000000002282c  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/oat/arm64/base.odex (com.unity3d.player.GoogleVrProxy.isQuiting [DEDUPED]+124)
  #26  pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
  #27  pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
  #28  pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
  #29  pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
  #30  pc 0000000000532578  /system/lib64/libart.so (MterpInvokeDirect+296)
  #31  pc 0000000000554714  /system/lib64/libart.so (ExecuteMterpImpl+14484)
  #32  pc 000000000040999c  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer.c)
  #33  pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.783209430+496)
  #34  pc 000000000025fc20  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
  #35  pc 0000000000280588  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
  #36  pc 000000000053273c  /system/lib64/libart.so (MterpInvokeStatic+204)
  #37  pc 0000000000554794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
  #38  pc 000000000040915c  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e$2.queueIdle+144)
  #39  pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.783209430+496)
  #40  pc 0000000000521978  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
  #41  pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
  #42  pc 0000000000b2ac3c  /system/framework/arm64/boot-framework.oat (android.os.MessageQueue.next+940)
  #43  pc 0000000000b27ecc  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+636)
  #44  pc 000000000056224c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
  #45  pc 00000000000d0160  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
  #46  pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
  #47  pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
  #48  pc 000000000053273c  /system/lib64/libart.so (MterpInvokeStatic+204)
  #49  pc 0000000000554794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
  #50  pc 00000000004093b8  /data/app/club.piratetycoon.idleclicker-KgdTpPx5Q4L5LuUEyrUBvw==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+64)
  #51  pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.783209430+496)
  #52  pc 0000000000521978  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
  #53  pc 000000000056b0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
  #54  pc 0000000000561f88  /system/lib64/libart.so (art_quick_invoke_stub+584)
  #55  pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
  #56  pc 00000000004682d8  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #57  pc 00000000004693a0  /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
  #58  pc 0000000000494c98  /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
  #59  pc 0000000000084dc0  /system/lib64/libc.so (__pthread_start(void*)+208)
  #60  pc 0000000000023a4c  /system/lib64/libc.so (__start_thread+68)

As I can see the problem here is with firebase API.正如我所看到的,这里的问题在于 firebase API。 Please update your app firebase to the production key so that it can run on production apps that are released app on play store.请将您的应用程序 firebase 更新为生产密钥,以便它可以在 Play Store 上发布的应用程序的生产应用程序上运行。

change dev key to ---> production key

As @hosseinamini pointed out, it was the appbundle that was causing the crash.正如@hosseinamini 指出的那样,导致崩溃的是应用程序包。 After I uploaded an apk to the playstore, the crash disappeared.在我将 apk 上传到 playstore 后,崩溃消失了。

暂无
暂无

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

相关问题 从playstore下载时,签名的APK崩溃 - signed apk crashing when downloaded from playstore apk扩展文件无法从Playstore下载 - apk expansion file not downloading from playstore 谷歌地图没有显示何时从Playstore下载应用程序,但在安装直接签名的apk时显示正常 - Google map not showing when app is downloaded from playstore but showing fine when installed directly signed apk Flutter 打开应用程序时释放 apk 崩溃。 调试工作正常 - Flutter release apk crashing when opening the app. Debug working fine 下载apk时从google playstore获取邮件ID - Get mail id from google playstore while downloading apk 已签名的.apk在调试.apk正常工作的地方无法正常工作 - Signed .apk not working where debug .apk works fine 应用程序在 Android Studio 中运行良好,但发布和下载后开始崩溃? - App Works Fine In Android Studio But Started Crashing After Publishing And Downloading? APK错误:Android应用程序可以在模拟器/设备上完美运行,但是当我从PlayStore下载时,应用程序总是在启动时崩溃 - APK error: Android app runs perfectly fine on emulator/device but when I download from the PlayStore the app always crashes on startup 从 Playstore 下载时,我的 Android 应用程序崩溃,但是当我将它从 Android Studio 运行到任何设备时,它可以正常工作 - My Android App is crashing when downloaded from the Playstore but when I run it from Android Studio into any device it works normally 在Playstore上发布OTP后无法获取,但可以在Android Studio中正常运行 - After published on playstore OTP not getting, but it works fine from Android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM