2016-12-16 22 views
-1

我有一個gradle依賴關係。 當我添加編譯'com.heinrichreimersoftware:material-intro:1.6' 我在gradle sync後出現錯誤。 =>屬性「titleTextColor」已經用不兼容格式定義。屬性「titleTextColor」已用不兼容格式定義

你有經驗的人嗎?

defaultConfig { 
    minSdkVersion 16 
    targetSdkVersion 25 
    versionCode 29 
    versionName "2.1" 
    multiDexEnabled true 
} 

...

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.support:appcompat-v7:22.2.1' 
    compile 'com.jakewharton:butterknife:8.4.0' 
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0' 
    compile 'com.github.johnpersano:supertoasts:[email protected]' 
    compile 'com.mcxiaoke.volley:library-aar:1.0.0' 
    compile 'net.danlew:android.joda:2.3.3' 
    compile 'eu.inmite.android.lib:android-styled-dialogs:1.2.0' 
    compile 'com.google.android.gms:play-services:8.3.0' 
    compile 'com.android.support:design:22.2.1' 
    compile 'com.github.blackfizz:eazegraph:[email protected]' 
    compile 'com.nineoldandroids:library:2.4.0' 
    compile 'com.android.support:support-v4:22.2.1' 
    compile 'com.squareup.retrofit2:retrofit:2.1.0' 
    compile 'com.squareup.retrofit2:converter-gson:2.1.0' 
    compile 'com.squareup.okhttp3:logging-interceptor:3.3.1' 
    compile 'com.github.clans:fab:1.6.4' 
    compile 'com.heinrichreimersoftware:material-intro:1.6' 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
     transitive = true; 
    } 
} 
+0

如果您更新了您的Android SDK和gradle版本,那會好嗎? –

+0

我有** classpath'com.android.tools.build:gradle:2.2.3'** –

+0

和SDK版本?我想它是22? –

回答

0

com.heinrichreimersoftware:material-intro:1.6有這種依賴性:

compile 'com.android.support:appcompat-v7:24.2.0' 

因爲它是使用你必須使用compileSdkVersion 24的V24,你應該在使用相同級別的依賴。

+0

感謝響應。我更新了gradle文件。你可以在這裏看到:http://pastebin.com/atGPm0cc但沒有任何改變。我可以問你關於檢查我的gradle文件嗎? –