系统找不到指定的文件“\ app \ build \ outputs \ apk \ app-debug.apk”

时间:2015-07-16 06:44:13

标签: android android-studio apk

我只是将项目从eclipse导入到工作室,它成功构建但是当我尝试在Mobile上运行时它显示错误

   FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:preDexDebug'. >  
 com.android.ide.common.internal.LoggedErrorException: Failed to run   command:  E:\Android\SDK\build-tools\19.1.0\dx.bat --dex --output 
 E:\SPBranchOffline\app\build\intermediates\pre-dexed\debug\support-v4-  18.0.0-95e‌​90accb2727aa2e3ca98559a315ffbf588d787.jar 
E:\Android\SDK\extras\android\m2repository\com\android\support\support-v4\18.0.0‌\support-v4-18.0.0.jar Error Code: 1

Waiting for device.
Target device: alps-micromax_a110
Uploading file
	local path: E:\SPBranchOffline\app\build\outputs\apk\app-debug.apk
	remote path: /data/local/tmp/com.spbranchoffline
I/O Error: E:\MyProjectName\app\build\outputs\apk\app-debug.apk (The system cannot find the file specified)
我不明白我甚至没有运行它如何在那边创建.apk? 我如何摆脱这个错误。 我搜索我发现我在app.iml文件中没有任何代码,有 语法如 option name =“APK_PATH”value =“/ build / outputs /.." 如果有人知道我如何摆脱这个错误,请帮助我。

1 个答案:

答案 0 :(得分:1)

清理并重建项目。此外,您应该从SDK Manager更新构建工具,支持库等。