Android的工作室没有加载在设备上,本地路径不存在不存在、路径、加载、工作室

2023-09-03 22:32:14 作者:╯別致旳柔弱

最近,我试图转移我的 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项目时,还没有与较新的Andr​​oid版本工作室的类似问题。

Edit I 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

 
精彩推荐
图片推荐