Android studio 新安卓Gradle插件1.3单独仪器测试模块功能不工作

Android studio 新安卓Gradle插件1.3单独仪器测试模块功能不工作,android-studio,android-gradle-plugin,build.gradle,robotium,gradle-plugin,Android Studio,Android Gradle Plugin,Build.gradle,Robotium,Gradle Plugin,在运行模块测试的仪器测试时,我得到以下错误- Test running failed: Instrumentation run failed due to 'java.lang.NoClassDefFoundError' Empty test suite. 我有一个包含两个模块的项目:app和test 这是build.gradle(测试)` &这是测试模块的AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <

在运行模块
测试
的仪器测试时,我得到以下错误-

Test running failed: Instrumentation run failed due to 'java.lang.NoClassDefFoundError' Empty test suite.
我有一个包含两个模块的项目:
app
test

这是
build.gradle
(测试)`

&这是测试模块的
AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xx.android.test">
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="19" />
<application>
    <uses-library android:name="android.test.runner" />
</application>
    <instrumentation android:name=".CustomRunner"
        android:targetPackage="com.xx.android"
        android:handleProfiling="false"
        android:functionalTest="false"
        android:label="Instrumentation test"/>
</manifest>


是文件
AndroidManifest.xml
还是
Manifest.xml
后者不正确是的,是打字错误..谢谢!修好了吗?如果
,请尝试升级gradle插件版本
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xx.android.test">
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="19" />
<application>
    <uses-library android:name="android.test.runner" />
</application>
    <instrumentation android:name=".CustomRunner"
        android:targetPackage="com.xx.android"
        android:handleProfiling="false"
        android:functionalTest="false"
        android:label="Instrumentation test"/>
</manifest>