将模块编译到项目android

时间:2016-08-02 21:20:34

标签: java android

导入模块后出现此错误。有人可以帮帮我吗?感谢

java.lang.Object中的验证错误com.colgate.alarm.MainActivity.access $ super(com.colgate.alarm.MainActivity,java.lang.String,java.lang.Object [])     08-02 16:14:43.753 1487-1487 / com.colgate.alarm I / art:java.lang.Object com.colgate.alarm.MainActivity.access $ super(com.colgate.alarm.MainActivity,java.lang。 String,java.lang.Object []):[0x1CA]找不到方法android.support.v4.app.FragmentActivity.supportFinishAfterTransition()V

...

FATAL EXCEPTION: main
                                                                 Process: com.colgate.alarm, PID: 1487
                                                                 java.lang.VerifyError: Verifier rejected class com.colgate.alarm.MainActivity due to bad method java.lang.Object com.colgate.alarm.MainActivity.access$super(com.colgate.alarm.MainActivity, java.lang.String, java.lang.Object[]) (declaration of 'com.colgate.alarm.MainActivity' appears in /data/data/com.colgate.alarm/files/instant-run/dex/slice-slice_1-classes.dex)
                                                                     at java.lang.Class.newInstance(Native Method)
                                                                     at android.app.Instrumentation.newActivity(Instrumentation.java:1090)
                                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
                                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
                                                                     at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
                                                                     at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                     at android.os.Looper.loop(Looper.java:148)
                                                                     at android.app.ActivityThread.main(ActivityThread.java:5443)
                                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

禁用即时运行后我收到了这个新错误

在进程中运行dex需要构建工具23.0.2。 对于更快的构建,请更新此项目以使用最新的构建工具。 错误:将字节码转换为dex时出错: 原因:com.android.dex.DexException:多个dex文件定义Landroid / support / v4 / accessibilityservice / AccessibilityServiceInfoCompatIcs; :app:transformClassesWithDexForDebug FAILED 错误:任务':app:transformClassesWithDexForDebug'执行失败。

  

com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:org.gradle .process.internal.ExecException:进程'命令'C:\ Program Files \ Java \ jdk1.8.0_51 \ bin \ java.exe''以非零退出值2结束

0 个答案:

没有答案