2017-04-05 34 views
0

这是我的build.gradle文件请帮我..摇篮同步Failed..could找不到论证方法lintOptions()无法获取不明财产“编译”的对象

apply plugin: 'com.android.application' 
android { 
compileSdkVersion 25 
buildToolsVersion "25.0.2" 
defaultConfig { 
    applicationId "com.androidhive.info.weplanbeta" 
    minSdkVersion 15 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
lintOptions { 
    abortOnError false 
} 
} 

这些都是依赖我想我已经妥善安排他们,但仍然它不是运行

dependencies { 

    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
    }) 

    compile('com.mikepenz:materialdrawer:[email protected]') { 
     transitive = true 
    } 


    compile 'com.android.support:appcompat-v7:25.3.0' 
    compile 'com.android.support:design:25.3.0' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.google.firebase:firebase-auth:9.0.2' 
    compile 'com.ncapdevi:frag-nav:1.0.3' 
    compile 'com.roughike:bottom-bar:1.3.9' 
    compile 'com.android.support:support-v4:25.3.0' 
    compile 'com.android.support:recyclerview-v7:25.3.0' 
    compile 'com.android.volley:volley:1.0.0' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
    testCompile 'junit:junit:4.12' 
} 

apply plugin: 'com.google.gms.google-services' 
+0

完成后的gradle文件 –

+0

皮棉选项必须在'机器人{}''的gradle' – Wizard

+0

完全在组件中提出? –

回答

0

您应该启用lintOptions

android { 
    ... 
    lintOptions { 
      checkReleaseBuilds false 
      abortOnError false 
      ignoreWarnings true //false 
       } 
      } 

而且

compile 'com.android.support:appcompat-v7:25.1.0' 
    compile 'com.android.support:design:25.1.0' 
    compile 'com.android.support:support-v4:25.1.0' 
    compile 'com.android.support:recyclerview-v7:25.1.0' 
+0

我已经添加了这个错误是他们的 –

+0

@DhruvGupta设置了'v7:25.1.0'版本。希望这有助于 –

+0

@DhruvGupta你是否解决了这个问题呢? ? –

相关问题