Android Studio 未在设备上加载,本地路径不存在 [英] Android Studio is not loading on the device, local path doesn't exist

查看:28
本文介绍了Android Studio 未在设备上加载,本地路径不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近尝试将我的 Eclipse 项目迁移到 Android Studio.一切都很顺利,直到我尝试运行该项目并出现错误:

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 Studio 0.1.3 时发生的,并且在转换 eclipse 项目时没有与较新版本的 Android Studio 出现类似的问题.

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.

推荐答案

转到您的项目文件夹.打开 ProjectName 文件夹.

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"/>

在新版本的 Android Studio 中

In new versions of Android studio

这篇关于Android Studio 未在设备上加载,本地路径不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆