gpt4 book ai didi

android - java.lang.RuntimeException : stub only when proguard enabled true 错误

转载 作者:行者123 更新时间:2023-12-04 15:24:35 32 4
gpt4 key购买 nike

我编写了一个示例应用程序,其中我从本地主机获取数据...一年前创建了这个应用程序,最后一次使用是在上周或最多到最多 2 周前,应用程序运行良好,一切如符合我的预期

更新

Resolved this issue by disabling proguard, but I want to enable like, I've enabled earlier

突然,应用程序停止从本地主机获取数据,看不到更多,但这是我在日志中发现的:

2020-06-23 15:25:51.666 3751-3751/? W/RefBase: CallStack::getCurrentInternal not linked, returning null
2020-06-23 15:25:51.666 3751-3751/? W/RefBase: CallStack::logStackInternal not linked
2020-06-23 15:25:51.687 27221-27221/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1631 android.content.ContextWrapper.startService:683 android.content.ContextWrapper.startService:683 com.sec.android.diagmonagent.sa.receiver.CFLogReceiver.sendCFLog:21 com.sec.android.diagmonagent.sa.receiver.CFLogReceiver.onReceive:13
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: java.lang.RuntimeException: stub
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at c.e.b.a.<init>(:36)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at com.example.myapp.UserInfoActivity$e.<init>(:362)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at com.example.myapp.UserInfoActivity.onCreate(:49)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at android.app.Activity.performCreate(Activity.java:7955)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at android.app.Activity.performCreate(Activity.java:7944)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3423)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2147)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.os.Looper.loop(Looper.java:237)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7807)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1047)

最佳答案

所以基本上,您的类、字段在混淆过程中被重命名,因此导致此错误。解决这个问题的最简单方法是在 pro guard 规则文件中添加你不希望被混淆的类的完整类名。引用:ProGuard - Obfuscating apk causing error

关于android - java.lang.RuntimeException : stub only when proguard enabled true 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62532347/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com