jasonross / Nuwa

Nuwa, pure java implementation, can hotfix your android application.
2.96k stars 574 forks source link

多dex打包失败 #60

Open RebortY opened 8 years ago

RebortY commented 8 years ago

gradle dexDebug task 使用的命令如下 /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java -Xmx2g -Dfile.encoding=UTF-8 -Duser.country=CN -Duser.language=zh -Duser.variant -cp /Users/yangll/Android/adt-bundle-mac-x86_64-20140321/sdk/build-tools/21.0.2/lib/dx.jar com.android.dx.command.Main --dex --verbose --force-jumbo --multi-dex --main-dex-list /Users/yangll/jingoal_project/android_ui/jingoal/build/intermediates/multi-dex/debug/maindexlist.txt --output /Users/yangll/jingoal_project/android_ui/jingoal/build/intermediates/dex/debug /Users/yangll/jingoal_project/android_ui/jingoal/build/intermediates/multi-dex/debug/allclasses.jar

执行后异常如下

Unknown source file : EXCEPTION FROM SIMULATION: Unknown source file : stack: overflow Unknown source file : ...at bytecode offset 00000006 Unknown source file : locals[0000]: Lcom/ms/agent/Event_Type; Unknown source file : stack[top0]: type{cn.jiajixin.nuwa.Hack} Unknown source file : ...while working on block 0006 Unknown source file : ...while working on method :()V Unknown source file : ...while processing ()V Unknown source file : ...while processing com/ms/agent/Event_Type.class Unknown source file : EXCEPTION FROM SIMULATION: Unknown source file : stack: overflow Unknown source file : ...at bytecode offset 00000006 Unknown source file : locals[0000]: Lcom/ms/agent/MobAgent$1; Unknown source file : stack[top0]: type{cn.jiajixin.nuwa.Hack} Unknown source file : ...while working on block 0006 Unknown source file : ...while working on method :()V Unknown source file : ...while processing ()V Unknown source file : ...while processing com/ms/agent/MobAgent$1.class Unknown source file : 2 errors; aborting

:dexDebug FAILED :dexDebug (Thread[Task worker Thread 2,5,main]) completed. Took 2.648 secs.

FAILURE: Build failed with an exception.