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

后端 未结 6 1284
盖世英雄少女心
盖世英雄少女心 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:29

    instrumentTest has been deprecated and does not work with modern Gradle versions - which you probably updated in your project when upgrading Android Studio.

    Replace instrumentTest with androidTest and it'll work.

提交回复
热议问题