Today, when I run an android applet, two errors occur: (two solutions are available on the Internet)
Problem 1: After you click "android JUnit test", the following warning is displayed: Warning: No instrumentation runner found for the launch, using Android. Test. instrumentationtestrunner.
The reason is: the simulator cannot remember the configuration of androidmanifest. During running, you need to reset the running configuration.
The configuration steps are as follows:
1. Right-click the project name and choose Properties
2. In run/debug setting, select the name of the project to be run and click Edit on the right side to go to the following interface. In the drop-down list after the instrumentation runner, select Android. Test. instrumentationtestrunner.
3. Run the test unit again.
The above warning will not appear.
Problem 2: Installation Error: install_failed_insufficient_storage occurs during running. When the project is executed, the system prompts the above error or memory problems.
Solution: delete all the previous APK files.
Method 1: run the following command to enter the Tools Folder: ADB shell "enter"CD Data "enter" CD app "enter" ls, you can see the previous APK file, you can delete it with the RM file name. (The simulator must be in the running state)
Method 2:
Start the simulator and choose Settings> Applications> mange Applications> select theapplication> select "unistall ".
The solution is to increase the memory space on the internet, use the command to start: emulator-AVD myandroid-partition-size120, set the memory to 120 m, but here I can't, maybe there are too many APK files earlier
Set the startup command in Eclipse: (coloring part in the figure)
Reprinted from: http://blog.sina.com.cn/s/blog_600c6eec0100sy91.html
Http://www.cnblogs.com/tjpfly/archive/2011/05/25/2056717.html
Question 3: The Android SDK does not match the ADT version, and the system prompts that the SDK Tools version is too low. You need to upgrade the SDK manager.
Solution: Open Android SDK manager and select Tools -- Manage Add-on-sites... -- user defined sites. Then add the URLHttp://developer.android.com/sdk/index.html.