No instrumentation runner instrumentationtestrunner and install_failed_insufficient_storag

Source: Internet
Author: User
Tags android sdk manager

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.