我是android studio中的新手,我正在尝试测试一些 Material 设计的东西。
我为此添加了一些依赖

这是导致R错误的代码

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'br.com.liveo:navigationdrawer-material:2.3.3'
    compile 'com.github.navasmdc:MaterialDesign:1.+@aar'
    compile 'com.nineoldandroids:library:2.4.+'

}

但是如果我们尝试使用没有任何问题
    compile 'br.com.liveo:navigationdrawer-material:2.3.3'

要么
    compile 'com.github.navasmdc:MaterialDesign:1.+@aar'
    compile 'com.nineoldandroids:library:2.4.+'

当我一起使用这些时,问题就来了。

我是这个Android Studio的初学者。任何想法表示赞赏。谢谢。

![重建其显示此错误后] http://i.stack.imgur.com/HoToP.png

最佳答案

首先,尝试“清理”,然后在“生成”菜单中重新生成项目。如果那不起作用,请尝试使用以下insted行:

 compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
 compile 'com.nineoldandroids:library:2.4.0'

08-18 05:37
查看更多