赞
踩
- 03-27 08:41:48.942 29308-29308/com.xx.xxxxxxxxxxxxx E/AndroidRuntime: FATAL EXCEPTION: main
- Process: com.xx.xxxxxxxxxxxxx, PID: 29308
- java.lang.NoSuchFieldError: No static field septal_line3 of type I in class com/example/xxxxx/xxxxxxxxxx/R$id; or its superclasses (declaration of 'com.example.xxxxx.xxxxxxxxxx.R$id' appears in /data/app/com.xx.xxxxxxxxxxxxx-RG7tZfAu52Wrq4tU5KPo7Q==/split_lib_slice_9_apk.apk)
- at com.example.xxxxx.xxxxxxxxxx.ui.activities.MainActivity.onCreate(MainActivity.java:166)
- at android.app.Activity.performCreate(Activity.java:7458)
- at android.app.Activity.performCreate(Activity.java:7448)
- at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1286)
- at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3409)
- at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614)
- at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:86)
- at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
- at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
- at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199)
- at android.os.Handler.dispatchMessage(Handler.java:112)
- at android.os.Looper.loop(Looper.java:216)
- at android.app.ActivityThread.main(ActivityThread.java:7625)
- at java.lang.reflect.Method.invoke(Native Method)
- at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
- at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
导入module之后报错闪退
查看报错位置为onCreate 中的
textView=(TextView)findViewById(R.id.septal_line3)加载错误
发现是module中的layout和app中的layout命名重了,都是activity_main.xml,改为不同即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。