Cant run unit tests
kacmacuna opened this issue · 0 comments
kacmacuna commented
When Im trying to run SampleCodeDetectorTest it throws AssertionError.
`Java.lang.AssertionError: This test requires an Android SDK: No SDK configured.
If this test does not really need an SDK, set TestLintTask#allowMissingSdk(). Otherwise, make sure an SDK is available either by specifically pointing to one via TestLintTask#sdkHome(File), or configure $ANDROID_HOME in the environment
at org.junit.Assert.fail(Assert.java:89)
at com.android.tools.lint.checks.infrastructure.TestLintClient.ensureSdkExists(TestLintClient.java:207)
at com.android.tools.lint.checks.infrastructure.TestLintClient.setLintTask(TestLintClient.java:183)
at com.android.tools.lint.checks.infrastructure.TestLintTask.checkLint(TestLintTask.java:784)
at com.android.tools.lint.checks.infrastructure.TestLintTask.run(TestLintTask.java:720)
at com.example.lint.checks.SampleCodeDetectorTest.testBasic(SampleCodeDetectorTest.kt:35)`