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

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

    1.you will face this type of issue while upgrading the gradle files 2.if ur project implements any payment gateways in their gradle file you find this "instrumentTest.setRoot('tests')".

    Solution simple just replace this "instrumentTest.setRoot('tests')" with androidTest as show below images...

    It will work @Ambilpura

提交回复
热议问题