android - "File not Found" exception in dexDebug task of build -
error:execution failed task ':app:dexdebug'. > com.android.ide.common.internal.loggederrorexception: failed run command: d:\androidsdk\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output c:\users\奇異果kiwi\androidstudioprojects\myapplication\app\build\intermediates\dex\debug --input-list=c:\users\奇異果kiwi\androidstudioprojects\myapplication\app\build\intermediates\tmp\dex\debug\inputlist.txt error code: 1 output: unexpected top-level exception: java.lang.runtimeexception: c:\users\憟?iwi\androidstudioprojects\myapplication\app\build\intermediates\classes\debug: file not found @ com.android.dex.util.fileutils.readfile(fileutils.java:51) @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:169) @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:144) @ com.android.dx.command.dexer.main.processone(main.java:632) @ com.android.dx.command.dexer.main.processallfiles(main.java:510) @ com.android.dx.command.dexer.main.runmonodex(main.java:280) @ com.android.dx.command.dexer.main.run(main.java:246) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106) unexpected top-level exception: java.io.filenotfoundexception: c:\users\憟?iwi\androidstudioprojects\myapplication\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.3-51286ab94e7499c7ecd0aa476d97b899efaf6c27.jar (系統找不到指定的路徑。) @ java.util.zip.zipfile.open(native method) @ java.util.zip.zipfile.<init>(zipfile.java:214) @ java.util.zip.zipfile.<init>(zipfile.java:144) @ java.util.zip.zipfile.<init>(zipfile.java:158) @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244) @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:166) @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:144) @ com.android.dx.command.dexer.main.processone(main.java:632) @ com.android.dx.command.dexer.main.processallfiles(main.java:510) @ com.android.dx.command.dexer.main.runmonodex(main.java:280) @ com.android.dx.command.dexer.main.run(main.java:246) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106) unexpected top-level exception: java.io.filenotfoundexception: c:\users\憟?iwi\androidstudioprojects\myapplication\app\build\intermediates\pre-dexed\debug\internal_impl-21.0.3-ce55b50963ad65e1327b9400909949150e7611f9.jar (系統找不到指定的路徑。) @ java.util.zip.zipfile.open(native method) @ java.util.zip.zipfile.<init>(zipfile.java:214) @ java.util.zip.zipfile.<init>(zipfile.java:144) @ java.util.zip.zipfile.<init>(zipfile.java:158) @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244) @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:166) @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:144) @ com.android.dx.command.dexer.main.processone(main.java:632) @ com.android.dx.command.dexer.main.processallfiles(main.java:510) @ com.android.dx.command.dexer.main.runmonodex(main.java:280) @ com.android.dx.command.dexer.main.run(main.java:246) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106) unexpected top-level exception: java.io.filenotfoundexception: c:\users\憟?iwi\androidstudioprojects\myapplication\app\build\intermediates\pre-dexed\debug\classes-d623e62ecbc5d0168d8c16d5b214281abe3a28b1.jar (系統找不到指定的路徑。) @ java.util.zip.zipfile.open(native method) @ java.util.zip.zipfile.<init>(zipfile.java:214) @ java.util.zip.zipfile.<init>(zipfile.java:144) @ java.util.zip.zipfile.<init>(zipfile.java:158) @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244) @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:166) @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:144) @ com.android.dx.command.dexer.main.processone(main.java:632) @ com.android.dx.command.dexer.main.processallfiles(main.java:510) @ com.android.dx.command.dexer.main.runmonodex(main.java:280) @ com.android.dx.command.dexer.main.run(main.java:246) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106) unexpected top-level exception: java.io.filenotfoundexception: c:\users\憟?iwi\androidstudioprojects\myapplication\app\build\intermediates\pre-dexed\debug\classes-4970dd912b559490f230c1c9ad0babb79d453354.jar (系統找不到指定的路徑。) @ java.util.zip.zipfile.open(native method) @ java.util.zip.zipfile.<init>(zipfile.java:214) @ java.util.zip.zipfile.<init>(zipfile.java:144) @ java.util.zip.zipfile.<init>(zipfile.java:158) @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244) @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:166) @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:144) @ com.android.dx.command.dexer.main.processone(main.java:632) @ com.android.dx.command.dexer.main.processallfiles(main.java:510) @ com.android.dx.command.dexer.main.runmonodex(main.java:280) @ com.android.dx.command.dexer.main.run(main.java:246) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106) 5 errors; aborting
try locating projects in path doesn't have non-ascii characters in it; username in unicode, , build system can't handle pathnames have non-ascii unicode.
this bug in java , quite difficult fix; see https://code.google.com/p/android/issues/detail?id=56102 details. crux of java's launcher uses wrong windows api call fetch command line os.
Comments
Post a Comment