When you run ./gradlew clean build, the :shared-test:lintDebug task will fail:
FakeTaskDao.kt:66: Error: Call requires API level 24 (current min is 21): java.util.Collection#removeIf [NewApi]
entries.removeIf { it.value.isCompleted }
~~~~~~~~
A proposed solution is to label the enclosing function with @RequiresApi(Build.VERSION_CODES.N). With that change in place, ./gradlew clean build can now complete successfully.
When you run
./gradlew clean build
, the:shared-test:lintDebug
task will fail:A proposed solution is to label the enclosing function with
@RequiresApi(Build.VERSION_CODES.N)
. With that change in place,./gradlew clean build
can now complete successfully.