9

Hello I am having this error

Uploading file
    local path: C:\Users\myuser\AndroidStudioProjects\Myapp\build\classes\debug\Myapp.apk
    remote path: /data/local/tmp/mypackage
Local path doesn't exist.

when uploading to my device. I see that Myapp.apk gets created in apk folder as it should be. But Android Studio tries to upload from classes\debug\

Do you know how to sort it out? Thanks

4

4 回答 4

16

我刚刚在博客上提到了同样的问题。希望这对您有所帮助和工作。

http://www.ninjacrab.com/2013/08/28/android-studio-local-path-doesnt-exist/

干杯!

于 2013-08-29T04:00:42.277 回答
9

或者,您可以转到 Tools > Android > Sync Project with Gradle Files 来恢复路径。

于 2013-10-11T09:55:28.510 回答
1

我通过打开项目 .iml 文件并编辑了不正确的 APK_PATH 声明来解决了我的类似问题

于 2013-08-06T08:52:18.153 回答
0

如果您在 Windows 上使用工作室并且您的 Windows 用户名包含特殊符号,例如“&” - 重命名您的用户名(和用户文件夹)!

于 2014-12-18T07:15:24.050 回答