Example 1:
' Can ' t bind to local 8700 for debugger ' error and resolution
1.CTS test appears, after running startcts, ' Can ' t bind to local 8700 for debugger ' error
2.NETSTAT-APN |grep 8700 queries, the result is:
TCP6 0 0 123.0.0.1:8700::: * LISTEN 3665/java
UNIX 3 [] STREAM CONNECTED 8700 1227/upowerd
3.kill-9 3665, kill the Java process, problem solving. Example 2:can ' t bind to local 8600 for debugger
Restart the emulator and eclipse to kill the ADB process
Task Manager or Cmd:adb Kill-server.
You can restart eclipse.
Android Could not open Selected VM Debug Port (8700) Example 3:
1. Re-installation failed due to different application signatures.
Remove the original package and install it again. Run on the command line: adb uninstall <package_name> the package_name here is androidmanifest.xml inside <manifest/> The data value of the element package property. For example: adb uninstall Org.andriod.demo. For deletion, you can also refer to 6. How to remove the description of this part of the package
2. Emulator:ERROR:unknown virtual device name: ' My_android '
Set the environment variable android_sdk_home, which points to the Andriod SDK directory.
3. ddms-failed to initialize Monitor thread:unable to establish loopback connection
The firewall may be blocking the startup of the ADB server, shutting down the firewall, and restarting ADB server. Enter the DOS command environment to run the following commands: ADB kill-server and ADB start-server
4. Installation Error:install_failed_insufficient_storage
If this is a message that emulator prompts, it may be out of memory. When you start emulator, add the parameter-partition-size 120
5. Warning:application does not specify a API level requirement!
The usual error messages are:
[HTML]View Plaincopyprint?
- [2010-10-23 08:15:28-appname] Warning:application does not specify a API level requirement!
- [2010-10-23 08:15:28-appname] Device API version is 8 (Android 2.2)
In the Androidmanifest.xml file, use <uses-sdk/> to specify the level of the API. For example:
[HTML]View Plaincopyprint?
- <uses-sdk android:minsdkversion="8"/>
[HTML]View Plaincopyprint?
- <uses-sdk android:minsdkversion="8"/>
6. How to delete a package
Method one, through the ADB command line. ADB uninstall <package_name>
Method Two, through the device management software settings to delete. Setting---applications--and Manage applications to remove software
7. Could not open Selected VM Debug Port (8700). Make sure don't have another instance of DDMS or of the eclipse plugin running. If it ' s being used by something else, choose a new port number in the preferences.
Workaround: In Firewall advanced advanced settings, set up and inbound settings for Port 8700
More to be continued: http://blog.csdn.net/chaozhung_no_l
Go Problems encountered during Android development