Android Studio APK 安装错误:“本地路径不存在" [英] Android Studio APK install error: "local path doesn't exist"

查看:42
本文介绍了Android Studio APK 安装错误:“本地路径不存在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Android Studio 中点击运行"或调试"按钮时,我得到以下输出:

I get the following output when hitting the "run" or "debug" button in Android Studio:

等待设备.目标设备:emulator-5554 (2.2) 上传文件本地路径:/Users/myname/Development/TestProject/Test/build/apk/Test-debug-unaligned.apk远程路径:/data/local/tmp/nz.co.adbc.testproject 安装nz.co.adbc.testproject 设备外壳命令:pm install -r/data/local/tmp/nz.co.adbc.testproject"包:/data/local/tmp/nz.co.adbc.testproject 成功

Waiting for device. Target device: emulator-5554 (2.2) Uploading file local path: /Users/myname/Development/TestProject/Test/build/apk/Test-debug-unaligned.apk remote path: /data/local/tmp/nz.co.adbc.testproject Installing nz.co.adbc.testproject DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/nz.co.adbc.testproject" pkg: /data/local/tmp/nz.co.adbc.testproject Success

上传文件本地路径:/Users/myname/Development/TestProjectProject/actionbarsherlock/build/libs/actionbarsherlock-debug.aar远程路径:/data/local/tmp/com.actionbarsherlock本地路径不存在.

Uploading file local path: /Users/myname/Development/TestProjectProject/actionbarsherlock/build/libs/actionbarsherlock-debug.aar remote path: /data/local/tmp/com.actionbarsherlock Local path doesn't exist.

由于此错误(以粗体显示),它不会启动意图.因此我无法在 Android Studio 中调试我的应用.

Because of this error (in bold), it doesn't start the intent. Therefore I can't debug my app in Android Studio.

否则该应用程序运行良好.它仍然安装并运行良好(从应用程序抽屉手动启动时).

The app works fine otherwise. It still installs and runs fine (when launched manually from the app drawer).

有没有人以前看到过这个错误,并知道为什么它试图上传 actionbarsherlock 的 aar 文件?难道不应该只上传我的包含 aar 的 apk 吗?

Has anyone seen this error before and have any info on why it is trying to upload the aar file of actionbarsherlock? Shouldn't it just upload my apk which would include the aar?

推荐答案

想通了.我的项目取决于 aar 和项目本身.

Figured it out. My project was depending on both the aar and the project itself.

File -> Project Structure -> Modules -> Your Project -> Dependencies -> 取消勾选项目(只依赖于 aar)

File -> Project Structure -> Modules -> Your Project -> Dependencies -> Uncheck the project (only depend on the aar)

这篇关于Android Studio APK 安装错误:“本地路径不存在"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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