失败:构建失败并出现异常。
出了什么问题:任务“:app:preDexDebug”执行失败。
java.io.IOException: Cannot run program "C:\Users\SETIAWAN\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat":
CreateProcess error=2, The system cannot find the file specified
Try: Run with --stacktrace option to get the stack trace. Run with -- info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 12.109 secs
任何人都可以提供帮助。当我尝试运行 dx.bat 时。错误 Windows 找不到此文件(dx.bat)
您可以多次添加 android-support-v4.jar。从项目中删除 android-support-v4.jar 的依赖项build.gradle
并且只有一个依赖项,例如:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)