2017-04-05 76 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你是否解決了這個問題呢? ? –

相關問題