简体   繁体   中英

The system cannot find the file specified “\app\build\outputs\apk\app-debug.apk”

I just import project from eclipse to studio, it build successfully but when i am trying to run it on Mobile it shows me error of

   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) 
I don't understand i not even run it so how it creates .apk over there? How i get rid of that error. I do search i found that i do not have any code in app.iml file, having syntax like option name="APK_PATH" value="/build/outputs/.." If anyone know how i get rid of that error please help me out.

Clean and rebuild project. Also, you should update your build tools, support library, etc from the SDK Manager.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM