I updated the AndroidStudio to version 3.1
Clean Project...
and build failed
The SourceSet \'instrumentTest\' is not recognized by the Androi
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