问题描述
最近,我试图转移我的 Eclipse的项目交给机器人工作室。一切都很顺利,直到我试图运行该项目,并错误想出了:
I recently attempted to migrate my Eclipse project over to Android Studio. All went well until I attempted to run the project and an error came up:
Uploading file
local path: /Users/user/Documents/myapp/Android/myapp/build/apk/myapp-debug-unaligned.apk
remote path: /data/local/tmp/com.mycompany.myapp
Local path doesn't exist.
我怎样才能解决这个问题呢?
How can I fix this problem?
修改我想提一提,因为这是仍然得到的答案和注释,出现这个问题,同时采用了Android 0.1.3工作室和转换的Eclipse项目时,还没有与较新的Android版本工作室的类似问题。
EditI want to mention as this is still getting answers and comments, this issue occurred while using Android Studio 0.1.3 and have not had similar issues with newer versions of Android Studio when converting eclipse projects.
推荐答案
转到您的项目文件夹。打开项目名的文件夹。
Go to your project folder. Open ProjectName folder.
在文件Your_Project_name.iml添加
In file Your_Project_name.iml add
<option name="APK_PATH" value="/build/apk/your_app_name-debug-unaligned.apk" />
或
<option name="APK_PATH" value="/build/outputs/apk/your_app_name-debug-unaligned.apk"/>
在机器人工作室的新版本
In new versions of Android studio
这篇关于Android的工作室没有加载在设备上,本地路径不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!