2017-03-03 129 views
2

當我嘗試建立我的項目,消息搖籃建立報告這些消息:錯誤:執行失敗的任務「:應用程序:processDebugResources」

失敗:建立失敗,一個例外。

  • 出錯: 任務':app:processDebugResources'的執行失敗。

    java.lang.IllegalArgumentException異常(沒有錯誤消息)

搖籃文件

android { 
compileSdkVersion 25 
buildToolsVersion '25.0.2' 
defaultConfig { 
    applicationId "com.example.bolt.skola" 
    minSdkVersion 17 
    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' 
    } 
} 


} 

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.android.support:appcompat-v7:25.2.0' 
compile 'com.android.support:design:25.2.0' 
compile 'com.android.support:support-v4:25.2.0' 
compile 'com.roughike:bottom-bar:1.3.9' 


compile 'com.google.android.gms:play-services-identity:10.2.0' 
compile 'com.google.android.gms:play-services-plus:10.2.0' 
compile 'com.google.android.gms:play-services-gcm:10.2.0' 



testCompile 'junit:junit:4.12' 
} 
+0

你確定SDK版本已安裝在SDK Manager中?嘗試編輯你的buildToolsVersion :) –

+0

是的,這是...今天的補丁後,這... hanpend ... – smiljka

+0

一切似乎對我來說很好。我也在使用它。清理並重新構建一次項目。 –

回答

0

我有同樣的問題,我編輯..the問題解決

我的包名
+0

這應該是一個評論,而不是一個答案。 –

+0

這不會解決問題,你必須首先找到問題的根源。 –

0

很可能你沒有正確的ID在你的XML中有一個項目

<Button android:id="@+id/"/> 

編譯器很難檢測原因。

相關問題