2016-12-13 175 views
0

我的項目工作就好了,而且出突然,當我試圖重建它,我得到了這些錯誤:的Android工作室/搖籃錯誤

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :buttonstyle:generateDebugSources, :buttonstyle:mockableAndroidJar, :buttonstyle:prepareDebugUnitTestDependencies, :buttonstyle:generateDebugAndroidTestSources]

Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error:Execution failed for task ':app:mergeDebugResources'.

Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

這是我的構建gradle這個文件:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.1" 
    defaultConfig { 
     applicationId "ba.application.travel" 
     minSdkVersion 19 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     externalNativeBuild { 
      cmake { 
       cppFlags "-std=c++11" 
      } 
     } 
     dexOptions { 
      javaMaxHeapSize "4g" 
     } 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    externalNativeBuild { 
     cmake { 
      path "CMakeLists.txt" 
     } 
    } 
    sourceSets { main { assets.srcDirs = ['src/main/assets'] } } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.0.1' 
    compile project(':buttonstyle') 

    compile 'com.android.support:design:25.0.1' 
    compile 'com.android.support:appcompat-v7:25.0.1' 
    compile 'com.android.support:percent:25.0.1' 
    compile 'com.ashokvarma.android:bottom-navigation-bar:1.3.0' 
    compile 'com.android.support:support-v4:25.0.1' 
    compile 'com.android.support:gridlayout-v7:25.0.1' 
    compile 'com.android.support:cardview-v7:25.0.1' 
    compile 'com.android.support:recyclerview-v7:25.0.1' 
    compile 'com.akexorcist:RoundCornerProgressBar:2.0.3' 
    compile 'com.github.aakira:expandable-layout:[email protected]' 
    compile 'com.github.grennis:ExpandableRecyclerView:0.9.3' 
    compile 'com.github.markushi:circlebutton:1.1' 
    testCompile 'junit:junit:4.12' 
} 
+0

defaultConfig { //啓用multidex支持解決它。 multiDexEnabled true } – Nithinlal

+0

使用這個並重建代碼 – Nithinlal

回答

0

我通過從.JPG改變圖像格式png格式

0

嘗試啓用multidex支持。請參閱下面的鏈接以瞭解在項目中啓用multidex支持的步驟。
Enabling multidex support

+1

我啓用了multidex支持,但沒有效果。我仍然得到相同的錯誤。 –