When I first created my test project I told it that my package was com.example.test. Now, i’ve renamed the source package to com.imcool.android, and I also updated the package in my manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.imcool.android"
android:versionCode="1"
android:versionName="1.0" >
After a full clean, Android asks me if I want to update my launch configurations, I click yes. I try and run an android unit test and I get this error:
Test run failed: Unable to find instrumentation info for: ComponentInfo{com.imcool.android/android.test.InstrumentationTestRunner}
If I change the package in my manifest back to com.example.test it works, even though my actual source package name is still com.imcool.android.
Whats the deal?
it’s not android that has asked you . it’s eclipse . 🙂
anyway, just go to the run-configuarations and delete all of the items that aren’t needed anymore , and do the run again . this way it will forget about the previous configuration and will use only those that you ask of it.