2015-11-19 96 views
1

後添加映射的Android API,我有這個錯誤在編譯:科尼 - 螞蟻生成錯誤

UNEXPECTED TOP-LEVEL EXCEPTION: 
[exec-shell]  [dx] java.io.FileNotFoundException: C:\Users\rodrigo.dagnese\KonySampleApps\temp\Map\build\luaandroid\dist\Map\LibProjects\google-play-services_lib\bin\classes.jar (O sistema não pode encontrar o caminho especificado) 
[exec-shell]  [dx] at java.util.zip.ZipFile.open(Native Method) 
[exec-shell]  [dx] at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
[exec-shell]  [dx] at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
[exec-shell]  [dx] at java.util.zip.ZipFile.<init>(ZipFile.java:163) 
[exec-shell]  [dx] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244) 
[exec-shell]  [dx] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) 
[exec-shell]  [dx] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) 
[exec-shell]  [dx] at com.android.dx.command.dexer.Main.processOne(Main.java:672) 
[exec-shell]  [dx] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574) 
[exec-shell]  [dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) 
[exec-shell]  [dx] at com.android.dx.command.dexer.Main.run(Main.java:277) 
[exec-shell]  [dx] at com.android.dx.command.dexer.Main.main(Main.java:245) 
[exec-shell]  [dx] at com.android.dx.command.Main.main(Main.java:106) 
[exec-shell]  [dx] 1 error; aborting 
[exec-shell] 
[exec-shell] BUILD FAILED 
[exec-shell] C:\Users\rodrigo.dagnese\AppData\Local\Android\sdk\tools\ant\build.xml:888: The following error occurred while executing this line: 
[exec-shell] C:\Users\rodrigo.dagnese\AppData\Local\Android\sdk\tools\ant\build.xml:890: The following error occurred while executing this line: 
[exec-shell] C:\Users\rodrigo.dagnese\AppData\Local\Android\sdk\tools\ant\build.xml:902: The following error occurred while executing this line: 
[exec-shell] C:\Users\rodrigo.dagnese\AppData\Local\Android\sdk\tools\ant\build.xml:283: null returned: 1 
[exec-shell] 
[exec-shell] Total time: 16 seconds 
[11-19-2015 03:22:49]Ant build error=exec-shell returned: 1 
[11-19-2015 03:22:49]Build Generation failed for platform Android. 

有人知道意味着classes.jar和我怎麼能解決這個問題?

+0

你已經'清潔和建立'的應用程序? – danguilherme

回答

1

檢查您的環境變量。您需要安裝在根中的Java JDK(7.79爲我工作)。

Path: 
[..] 
C:\Android\platform-tools; 
C:\Android\tools; 
C:\Kony\Ant\bin; 
C:\Kony\ImageMagick; 
C:\Android\platform-tools; 
C:\Android\tools; 
C:\Java\bin; 
C:\Java\jre; 

JAVA_HOME: 
C:\Java 

JRE_HOME: 
C:\Java\jre