android设计库gradle空指针异常

我正在尝试将 android.support.design库添加到我的项目中:我的gradle文件中的所有有趣的东西:
dependencies {
    compile fileTree(include: ['*.jar'],dir: 'libs')
    compile 'com.android.support:design:22.2.0'
    compile 'com.android.support:support-annotations:22.0.0'
    compile 'com.android.support:support-v13:22.1.1'
    compile 'com.android.support:recyclerview-v7:22.1.1'
    compile 'com.android.support:cardview-v7:22.1.0'
}

我越来越

Error:Android Gradle Build Target: java.lang.NullPointerException

删除com.android.support:design:22.2.0(并添加回v4和AppCompat)时,构建成功.

Another similar issue对我没有帮助

请注意,我正在使用Intellij 14构建

解决方法

我使用android studio而不是IntelliJ 14运行应用程序并得到了一个不同的错误:
`Error:(1) Attribute "insetForeground" has already been defined`

因此,如果有人正在运行IntelliJ 14,直到下一次更新Intellij 14,我想使用android studio 1.3更安全. (或者至少使用android studio检查错误.

如果一个人得到同样的错误.

>转到attr.xml并删除declare-styleable name =“ScrimInsetsView”
>使用ctrl-shift-f搜索insetF并从包含此类属性的所有布局中删除app:insetForeground属性.

一切都应该工作好了

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...