Andoird Studio 1.1.0 "import android.support.annotation.Nullable;"失败

来源:互联网 发布:java建网站 编辑:程序博客网 时间:2024/06/03 18:09

问题如题。

 

打开“Project Structure对话框”。

左边栏选择“Modules”,右边选择最后一项“Dependencies”。

选择添加“com.android.support:support-annotations:22.0.0”。

搞定。

其实,在"build.gradle(Module)"中直接添加以下一行即可。

dependencies {
    compile 'com.android.support:appcompat-v7:19.1.0'
    compile 'com.android.support:support-v4:19.1.0'
    compile 'com.android.support:support-annotations:22.0.0'
}

 

0 0