AndroidManifest in androidTest directory being ignored

前端 未结 6 2028
一整个雨季
一整个雨季 2020-12-05 06:52

I\'m trying to test using the following directory structure (which was setup by Android Studio):

\"test

6条回答
  •  -上瘾入骨i
    2020-12-05 07:38

    You need to define that in build.gradle file:

    android {
        sourceSets {
            androidTest.manifest.srcFile "src/androidTest/AndroidManifest.xml"
        }
    }
    

提交回复
热议问题