Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Robolectric includeAndroidResources not found

I'm following this http://robolectric.org/getting-started/

but I'm getting: Error:(61, 0) Could not set unknown property 'includeAndroidResources' for object of type com.android.build.gradle.internal.dsl.TestOptions$UnitTestOptions.

when I add

    android {
      testOptions {
        unitTests {
          includeAndroidResources = true
        }
      }
    } 
like image 670
SpyZip Avatar asked Jul 13 '17 11:07

SpyZip


1 Answers

Try this code

    testOptions {
        unitTests {
          isIncludeAndroidResources = true
        }
    }
like image 159
Delly Fabian Lucas Avatar answered Oct 10 '22 06:10

Delly Fabian Lucas