2011-05-09 44 views
3

根据this,我试图修改GLRootView.java并重新安装新的Camera.apk;但是,当我尝试卸载旧的Camera.apk时,出现了一些错误。你知道有什么问题以及如何解决它?失败,试图重新安装新的Camera.apk到android模拟器2.2

$ ./adb remount 

remount succeeded 

$ ./adb shell rm /system/app/Camera.apk 

rm failed for /system/app/Camera.apk, Directory not empty 

$ ./adb uninstall com.android.camera 

故障

从蚀

[2011-05-08 17:41:43 - Camera] Uploading Camera.apk onto device 'emulator-5554' 
[2011-05-08 17:41:43 - Camera] Installing Camera.apk... [2011-05-08 17:42:11 - Camera] 
Re-installation failed due to different application signatures. [2011-05-08 17:42:11 - 
Camera] You must perform a full uninstall of the application. WARNING: This will 
remove the application data! [2011-05-08 17:42:11 - Camera] Please execute 'adb 
uninstall com.android.camera' in a shell. [2011-05-08 17:42:11 - Camera] Launch 
canceled! 

回答

0

重新安装如果由于某种原因失败,在命令提示类型:

adb remount 
adb shell 
壳内

和在:

cd /system/app 
rm Camera.apk 

仅在模拟器中使用它!

+0

仍然是一样的错误。 '$ ./adb remount' 重新挂载成功 '$ ./adb devices' 设备名单附后 模拟器-5554 \t设备 '$ ./adb shell' '#CD /系统/ app' '#RM Camera.apk' RM失败Camera.apk,目录非空 – angelokh 2011-05-09 04:32:29

+0

@angelokh尝试重新创建AVD – Aleadam 2011-05-10 00:08:30

+0

你觉得从Eclipse中创建AVD有什么差别?我试过了,错误仍然是一样的。 – angelokh 2011-05-10 01:53:48

1

我有同样的错误。我认为它可以与系统映像大小相关联。

尝试使用参数-partition-size 150启动仿真器。在我的情况下,它解决了这个问题。

有一个教程与图片"How to install Android market into SDK"描述类似的问题。