Ionic 应用程序最近发布在Play商店上,但应用程序无法打开

sqougxex  于 2022-12-08  发布在  Ionic
关注(0)|答案(2)|浏览(218)

Recently I published my ionic capacitor app on play store, when I tr to open the app after installing it is showing this error.
java.lang.NegativeArraySizeException: -1 at a1.a.u(Unknown Source:76) at g2.q0.h(Unknown Source:27) at g2.q0.(Unknown Source:113) at g2.e.P(Unknown Source:75) at g2.e.N(Unknown Source:23) at g2.e.(Unknown Source:119) at g2.e.(Unknown Source:0) at g2.e$b.c(Unknown Source:108) at g2.f.M(Unknown Source:19) at g2.f.onStart(Unknown Source:32) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1392) at android.app.Activity.performStart(Activity.java:7252) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2970) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6810) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) Blockquote
But my app still working on my emulator without showing any errors. How can I fix this? Pls help ...

nhhxz33t

nhhxz33t1#

你在你的应用程序中包括崩溃分析吗?这是一个由Google Firebase提供的软件包,它可以帮助你找到、隔离和修复应用程序中的崩溃。
你的应用程序可能无法在物理设备上运行,或者在世界上数以千计的设备上运行。试着添加一些崩溃日志来隔离你的问题。

kuarbcqp

kuarbcqp2#

我找到了解决方案。我只是删除了Android内的测试文件。

文件安卓/应用/测试和安卓/应用/安卓测试

我还删除了这些行
1.测试仪器运行器“androidx.测试.运行器.androidJUnitRunner”来自构建.等级,位于android-〉默认配置
1.测试实现“junit:junit:$junitVersion”androidTestImplementation“androidx.测试.扩展名:junit:$androidxJunitVersion”androidTestImplementation“androidx.测试.浓缩咖啡:浓缩咖啡核心:$androidxEspressoCoreVersion”这些行来自build.gradle下的依赖项

相关问题