Android开发问题汇总
时间:2011-03-14 来源:livedba
一、目录
0. 相关的资源
1. Re-installation failed due to different application signatures.
2. emulator: ERROR: unknown virtual device name: 'My_Android'
3. ddms - Failed to initialize Monitor Thread: Unable to establish loopback connection
4. Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
5. WARNING: Application does not specify an API level requirement!
6. 如何删除软件包
[2010-10-23 08:15:28 - AppName] WARNING: Application does not specify an API level requirement!
- [2010-10-23 08:15:28 - AppName] Device API version is 8 (Android 2.2)
[2010-10-23 08:15:28 - AppName] WARNING: Application does not specify an API level requirement! [2010-10-23 08:15:28 - AppName] Device API version is 8 (Android 2.2)
在AndroidManifest.xml文件中,使用<uses-sdk/>来指定API的级别。例如:
Xml代码- <uses-sdk android:minSdkVersion="8"/>
<uses-sdk android:minSdkVersion="8"/>
6. 如何删除软件包
方法一、通过adb命令行。adb uninstall <package_name>
方法二、通过设备的管理软件Settings来删除。Setting --> Applications --> Manage Applications来删除软件
二、内容
0. 相关的资源
http://www.josecgomez.com/2010/04/30/android-accessing-restfull-web-services-using-json/
1. Re-installation failed due to different application signatures.
将原来的软件包删除掉,然后重新安装一次就好了。在命令行上运行:adb uninstall <package_name>,这里的package_name也就是AndroidManifest.xml里面<manifest/>元素package属性的数据值。例如:adb uninstall org.andriod.demo。关于删除也可以参考 6.如何删除软件包 这个部分的说明
2. emulator: ERROR: unknown virtual device name: 'My_Android'
设置环境变量ANDROID_SDK_HOME,指向Andriod的SDK目录.
3. ddms - Failed to initialize Monitor Thread: Unable to establish loopback connection
防火墙可能阻挡了adb server的启动,关闭防火墙即可,重新启动adb server。进入dos 命令环境运行如下的指令:adb kill-server 和 adb start-server
4. Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
如果是Emulator提示这样的信息的话,可能是内存不足。在启动Emulator的时候,添加参数-partition-size 120
5. WARNING: Application does not specify an API level requirement!
通常的错误的信息是:
Er