Disable InvalidPackage lint check for testutils
Note this case is special in that JUnit is an actual compile dependency, as opposed to a testCompile or androidTestCompile dependency. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=184119235
This commit is contained in:
parent
430579dcd9
commit
34b4c52a01
@ -22,6 +22,13 @@ android {
|
||||
minSdkVersion project.ext.minSdkVersion
|
||||
targetSdkVersion project.ext.targetSdkVersion
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
// Truth depends on JUnit, which depends on java.lang.management, which is not part of
|
||||
// Android. Remove this when JUnit 4.13 or later is used. See:
|
||||
// https://github.com/junit-team/junit4/pull/1187.
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
Loading…
x
Reference in New Issue
Block a user