1、No Launcher activity found错误:
发现问题出在整个项目的那个主配置xml中,一般名字都是叫AndroidManifest.xml
里面没有配置启动项(原因多种多样),在<application></application>中少了这段代码
<activity android:name=".MainActivity"android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
其中.MainActivity就是你的项目的主Activity
2、has unexpectly stopped
请注销// getActionBar().setDisplayHomeAsUpEnabled(true); 这段代码
3、retemp does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml
manifest.xml代码
</application>
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.example.com.example.retemp"
android:label="Junit Test for RETEAMP " />
</manifest>
并将runas 下的run congfiguritions instruments runner选中
Unable to find instrumentation target package: com.example.com.example.retemp
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<uses-library android:name="android.test.runner" />
<activity