2016-06-01 178 views
0

一切後去編譯罰款與我的項目,但它不會編譯,如果我有這些插件我科爾多瓦項目將無法安裝Appodeal插件

com.appodeal.plugin

com.appodeal。 googleplayservices

PS:我下面這個教程第2步

這裏日誌中我得到

:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 

:compileDebugNdk UP-TO-DATE 
:compileDebugSources 
:transformClassesWithDexForDebug 
UNEXPECTED TOP-LEVEL EXCEPTION: 
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 
    at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:484) 
    at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:261) 
    at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:473) 
    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:161) 
    at com.android.dx.merge.DexMerger.merge(DexMerger.java:188) 
    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504) 
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334) 
    at com.android.dx.command.dexer.Main.run(Main.java:277) 
    at com.android.dx.command.dexer.Main.main(Main.java:245) 
    at com.android.dx.command.Main.main(Main.java:106) 


FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':transformClassesWithDexForDebug'. 
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

我不知道Java和科爾多瓦本地CONFIGS的細節,我只是Web開發人員,對不起

回答

0

我知道這是一個有點晚答覆,但如果有人願意有同樣的問題,這裏是解決方案:

cordova plugin add https://github.com/jwall149/cordova-multidex 

或者你也可以添加科爾多瓦直接插件到的package.json

{ 
    "locator": "https://github.com/jwall149/cordova-multidex", 
    "id": "cordova-multidex" 
}