我正在开发一个 Android 应用程序,请帮助我解决依赖错误。
package android.os;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
我添加了以下依赖项:
dependencies {
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0'
compile 'com.android.support:multidex:1.0.1'
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.parse:parse-android:1.12.0'
compile fileTree(include: '*.jar', dir: 'libs')
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:support-annotations:23.1.1'
}
在您的依赖项中添加以下内容
compile 'com.android.support:support-annotations:+'
另外,请验证这一点
转到文件 -> 设置 -> 搜索“nullable”并验证这些设置。
![enter image description here](https://i.stack.imgur.com/kuBiY.jpg)
![enter image description here](https://i.stack.imgur.com/fw90y.jpg)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)