The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin

后端 未结 6 1299
盖世英雄少女心
盖世英雄少女心 2020-12-29 01:50

I updated the AndroidStudio to version 3.1

Clean Project...

and build failed

The SourceSet \'instrumentTest\' is not recognized by the Androi         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 02:28

    Try change distributionUrl in you gradle/wrapper/gradle-wrapper.properties to last vesion:

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
    

    clean project and "Invalidate Cache/Restart" in File menu after this

提交回复
热议问题