gpt4 book ai didi

java.lang.ExceptionInInitializerError | java.lang.ExceptionInInitializerError | java.lang.ExceptionInInitializerError由 : com. b.a.c.b 引起: 'com.b.a.b.a' 需要 'sequence' 属性

转载 作者:行者123 更新时间:2023-12-01 10:43:14 24 4
gpt4 key购买 nike

我在项目的不同领域遇到了以下异常。最糟糕的是我不知道它是什么......我的项目中没有 com.b.a.c.b 包。我尝试在网络上搜索,但仍然不明白是什么导致了此异常。

在从另一个 Activity 调用 Intent 后,onCreate() 方法(我猜)会引发此异常。

注意:我正在使用 gson 2.2.4 和 POJO 方法,就在这之前我遇到了这个异常,我在使用相同类型的值创建 JSON 时遇到错误 "a""b""c" 等...而不是 POJO 变量名称。我对 POJO 类中的所有变量名称使用 @SerializedName("") 注释解决了这个问题。

以下是错误日志:

12-17 18:12:36.346: I/Timeline(2526): Timeline: Activity_launch_request id:com.shezartech.iitjeeacademy.ui.activity time:15338553
12-17 18:12:36.406: W/System.err(2526): java.lang.NoSuchMethodException: sequence []
12-17 18:12:36.406: W/System.err(2526): at java.lang.Class.getMethod(Class.java:665)
12-17 18:12:36.406: W/System.err(2526): at com.b.a.e.a(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at com.b.a.l.<clinit>(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at com.shezartech.iitjeeacademy.ui.activity.RegisterActivity.onCreate(Unknown Source)
12-17 18:12:36.406: W/System.err(2526): at android.app.Activity.performCreate(Activity.java:6283)
12-17 18:12:36.406: W/System.err(2526): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
12-17 18:12:36.406: W/System.err(2526): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
12-17 18:12:36.406: W/System.err(2526): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
12-17 18:12:36.406: W/System.err(2526): at android.app.ActivityThread.access$900(ActivityThread.java:177)
12-17 18:12:36.406: W/System.err(2526): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
12-17 18:12:36.406: W/System.err(2526): at android.os.Handler.dispatchMessage(Handler.java:102)
12-17 18:12:36.406: W/System.err(2526): at android.os.Looper.loop(Looper.java:145)
12-17 18:12:36.406: W/System.err(2526): at android.app.ActivityThread.main(ActivityThread.java:5942)
12-17 18:12:36.406: W/System.err(2526): at java.lang.reflect.Method.invoke(Native Method)
12-17 18:12:36.406: W/System.err(2526): at java.lang.reflect.Method.invoke(Method.java:372)
12-17 18:12:36.406: W/System.err(2526): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
12-17 18:12:36.406: W/System.err(2526): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
12-17 18:12:36.406: D/AndroidRuntime(2526): Shutting down VM
12-17 18:12:36.406: E/AndroidRuntime(2526): FATAL EXCEPTION: main
12-17 18:12:36.406: E/AndroidRuntime(2526): Process: com.shezartech.iitjeeacademy.ui.activity, PID: 2526
12-17 18:12:36.406: E/AndroidRuntime(2526): java.lang.ExceptionInInitializerError
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.shezartech.iitjeeacademy.ui.activity.RegisterActivity.onCreate(Unknown Source)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.Activity.performCreate(Activity.java:6283)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.ActivityThread.access$900(ActivityThread.java:177)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.os.Handler.dispatchMessage(Handler.java:102)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.os.Looper.loop(Looper.java:145)
12-17 18:12:36.406: E/AndroidRuntime(2526): at android.app.ActivityThread.main(ActivityThread.java:5942)
12-17 18:12:36.406: E/AndroidRuntime(2526): at java.lang.reflect.Method.invoke(Native Method)
12-17 18:12:36.406: E/AndroidRuntime(2526): at java.lang.reflect.Method.invoke(Method.java:372)
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
12-17 18:12:36.406: E/AndroidRuntime(2526): Caused by: com.b.a.c.b: 'com.b.a.b.a' requires the 'sequence' attribute.
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.b.a.f.a(Unknown Source)
12-17 18:12:36.406: E/AndroidRuntime(2526): at com.b.a.l.<clinit>(Unknown Source)
12-17 18:12:36.406: E/AndroidRuntime(2526): ... 14 more

最佳答案

禁用 proguard,然后您会看到错误会自行解释,您可以从 gradle 文件中执行此操作。

关于java.lang.ExceptionInInitializerError | java.lang.ExceptionInInitializerError | java.lang.ExceptionInInitializerError由 : com. b.a.c.b 引起: 'com.b.a.b.a' 需要 'sequence' 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34335350/

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