如果选择了安装位置是preferExternal
run时就出错:
[2013-01-02 22:23:46 - MMSMASS] ------------------------------
[2013-01-02 22:23:46 - MMSMASS] Android Launch!
[2013-01-02 22:23:46 - MMSMASS] adb is running normally.
[2013-01-02 22:23:46 - MMSMASS] Performing com.qidizi.mmsmass.MainActivity activity launch
[2013-01-02 22:23:46 - MMSMASS] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD_for_Nexus_S_by_Google'
[2013-01-02 22:23:46 - MMSMASS] Uploading MMSMASS.apk onto device 'emulator-5554'
[2013-01-02 22:23:47 - MMSMASS] Installing MMSMASS.apk...
[2013-01-02 22:23:50 - MMSMASS]Installation error: INSTALL_FAILED_CONTAINER_ERROR
[2013-01-02 22:23:50 - MMSMASS] Please check logcat output for more details.
[2013-01-02 22:23:50 - MMSMASS] Launch canceled!
logcat提示是没有权限.
01-02 14:10:36.986: W/ActivityManager(287): No content provider found for permission revoke: file:///data/local/tmp/MMSMASS.apk
但是如果想指定权限.
android.permission.INSTALL_LOCATION_PROVIDER
它就提示只有系统应用才允许使用