我使用 Android Studio 3.x 和 Gradle 构建脚本。
如何导入 javax.annotation.* 包?
这是我的 Gradle depedencies 示例。
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:support-v4:27.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
最佳答案
implementation 'com.google.code.findbugs:jsr305:3.0.2'
关于java - 如何导入 javax.annotation.Nullable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51451822/