简体   繁体   English

android:Gradle Build中的导航抽屉错误

[英]android: Navigation Drawer error in Gradle Build

I'm trying to use a Navigation Drawer, but I can't because I get the error: 我正在尝试使用导航抽屉,但是不能,因为出现错误:

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find any version that matches com.android.support:design:21.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 21 more
     Required by:
         project :app

On gradle I have: 在gradle上,我有:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.android.support:design:21.+'
}

Can you please help me? 你能帮我么?

Try using this: 尝试使用此:

compile 'com.android.support:design:21.0.3'

Or :

compile 'com.android.support:appcompat-v7:21.+'
compile 'com.android.support:support-v4:21.+'
compile 'com.android.support:design:21.+'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM