Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了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设计库gradle空指针异常全部内容,希望文章能够帮你解决android设计库gradle空指针异常所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。