Android APK安装失败,共享用户不兼容 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

Android 2.3.3    
Eclipse Version: 3.7.0    
LogCat
 

Console 报错信息:

[2012-02-05 13:25:26 - nokia] ------------------------------  
[2012-02-05 13:25:26 - nokia] Android Launch!  
[2012-02-05 13:25:26 - nokia] adb is running normally.  
[2012-02-05 13:25:26 - nokia] Performing com.nokia.htc.Start activity launch  
[2012-02-05 13:25:26 - nokia] Automatic Target Mode: launching new emulator with compatible AVD 'nokia'  
[2012-02-05 13:25:26 - nokia] Launching a new emulator with Virtual Device 'nokia'  
[2012-02-05 13:25:34 - Emulator] emulator: emulator window was out of view and was recentred  
[2012-02-05 13:25:34 - Emulator]   
[2012-02-05 13:25:34 - nokia] New emulator found: emulator-5554  
[2012-02-05 13:25:34 - nokia] Waiting for HOME ('android.process.acore') to be launched...  
[2012-02-05 13:25:35 - Emulator] Unknown savevm section type 95  
[2012-02-05 13:26:24 - nokia] HOME is up on device 'emulator-5554'  
[2012-02-05 13:26:24 - nokia] Uploading nokia.apk onto device 'emulator-5554'  
[2012-02-05 13:26:29 - nokia] Installing nokia.apk...  
[2012-02-05 13:26:55 - nokia] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE  
[2012-02-05 13:26:55 - nokia] Please check logcat output for more details.  
[2012-02-05 13:26:55 - nokia] Launch canceled!  

 

发生错误原因:虚拟机不支持添加共享用户类型。
解决办法:在AndroidManifest.xml取消对应的“android:sharedUserId”属性。
android:sharedUserId="android.uid.***"  
 

你可能感兴趣的:(android,code,xml,logcat,DebugLog)