Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
567 views
in Technique[技术] by (71.8m points)

actionbarsherlock - Android Studio APK install error: "local path doesn't exist"

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

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

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.

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).

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Only exit the Android Studio and relaunch it... In my case, I am using both the module project and its library ".aar" as dependencies


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...