當我在我的依賴也會添加此庫compile 'com.android.support:design:24.0.0'
,我得到了以下錯誤:我不能在Android Studio中添加此庫:編譯「com.android.support:design:24.0.0」
Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :app:compileDebugUnitTestSources]
Error:(253) Original attribute defined here.
C:\Users\Jamshidi\AndroidStudioProjects\School\School\app\build\intermediates\res\merged\debug\values\values.xml
Error:(257) Attribute "rippleColor" already defined with incompatible format.
Error:(257) Attribute "rippleColor" already defined with incompatible format.
Error:(253) Original attribute defined here.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Information:BUILD FAILED
Information:Total time: 26.882 secs
Information:5 errors
Information:0 warnings
Information:See complete output in console
如何我可以解決這個問題:
我build.gradle
文件包括以下內容:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.wrapp.floatlabelededittext:library:0.0.6'
compile 'com.github.navasmdc:MaterialDesign:[email protected]'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:[email protected]'
compile 'com.android.support:support-v4:24.1.0'
compile 'com.baoyz.pullrefreshlayout:library:1.2.0'
compile 'com.android.support:design:24.0.0'
是您的SDK和構建工具更新? –
是的,我想是不是SDK和工具的錯誤。它是錯誤:(257)屬性「rippleColor」已用不兼容格式定義。 –
嘗試清理該項目。 –