Installation failed due to invalid URI

 

日志写的是

[2015-04-12 20:32:33 - MyFirstAndroidApp] Android Launch!
[2015-04-12 20:32:33 - MyFirstAndroidApp] adb is running normally.
[2015-04-12 20:32:33 - MyFirstAndroidApp] Performing com.example.myfirstandroidapp.MyFirstAndroidAppActivity activity launch
[2015-04-12 20:32:33 - MyFirstAndroidApp] Automatic Target Mode: Preferred AVD 'thisAVD' is available on emulator 'emulator-5554'
[2015-04-12 20:32:33 - MyFirstAndroidApp] Uploading MyFirstAndroidApp.apk onto device 'emulator-5554'
[2015-04-12 20:32:34 - MyFirstAndroidApp] Installing MyFirstAndroidApp.apk...
[2015-04-12 20:32:43 - MyFirstAndroidApp] HOME is up on device 'emulator-5554'
[2015-04-12 20:32:43 - MyFirstAndroidApp] Uploading MyFirstAndroidApp.apk onto device 'emulator-5554'
[2015-04-12 20:32:44 - MyFirstAndroidApp] Installing MyFirstAndroidApp.apk...
[2015-04-12 20:32:45 - MyFirstAndroidApp] Success!
[2015-04-12 20:32:45 - MyFirstAndroidApp] Starting activity com.example.myfirstandroidapp.MyFirstAndroidAppActivity on device emulator-5554
[2015-04-12 20:32:50 - MyFirstAndroidApp] Installation failed due to invalid URI!
[2015-04-12 20:32:50 - MyFirstAndroidApp] Please check logcat output for more details.
[2015-04-12 20:32:50 - MyFirstAndroidApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.myfirstandroidapp/.MyFirstAndroidAppActivity }
[2015-04-12 20:32:50 - MyFirstAndroidApp] Launch canceled!

求大神解救!!!

最终解决方法:
cmd命令行下执行以下命令:
adb remount
adb shell
cd /data
chmod 777 local
重新安装apk,ok了。

-----------------
上面不行就这个方法
1、在properties -> java bulid path -> source中把gen那个目录删除;
2、再把自动生产的gen目录给删除;
3、重新build就可以了。


====================













 

转载于:https://www.cnblogs.com/awkflf11/articles/5232093.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值