日志写的是
[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就可以了。
====================