0

Hi everyone who reads this, well i was trying to doing a method that it said that i needed this in my gradle.build: compile 'org.apache.ant:ant:1.8.0' Then I tried to build my gradle and it doesn't worked. Well, so I removed that from my gradle and it keeps me saying that I have this error at compiling my gradle:

Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]

Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE
:app:prepareComAndroidSupportConstraintConstraintLayout100Alpha9Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2421Library UP-TO-DATE
:app:prepareComAndroidSupportMediarouterV72400Library UP-TO-DATE
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportPaletteV72400Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE
:app:prepareComAndroidVolleyVolley100Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAds961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAdsLite961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuth961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuthBase961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAwareness961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesCast961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesCastFramework961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesClearcut961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesDrive961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesFitness961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGames961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGass961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGcm961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIdentity961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIid961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesInstantapps961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocation961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMaps961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesNearby961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPanorama961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlaces961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlus961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTagmanager961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTagmanagerApi961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesVision961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWallet961Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWearable961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalytics961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuth961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuthCommon961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuthModule961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCommon961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseConfig961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCore961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCrash961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseDatabase961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseDatabaseConnection961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseIid961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseMessaging961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseStorage961Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseStorageCommon961Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:processDebugGoogleServices
Parsing json file: C:\Users\Rafa\AndroidStudioProjects\XabiaGame\app\google-services.json
:app:generateDebugResources
:app:mergeDebugResources
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
:app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

I tried to put all my services up to date, I mean, 10.0.1 and it keeps me saying the same thing...

Check out my gradle project:

   apply plugin: 'com.android.application'


android {
    compileSdkVersion 24
    buildToolsVersion "24.0.3"
    defaultConfig {
        applicationId "com.example.informatica.xabiagame"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true

        jackOptions {
            enabled true
        }
    }
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    /*repositories {
        maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/' }
    }*/
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
}
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 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
    compile 'com.android.support:design:24.2.1'
    compile 'com.google.android.gms:play-services-maps:9.6.1'
    compile 'com.google.android.gms:play-services-ads:9.6.1'
    compile 'com.google.android.gms:play-services:9.6.1'
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services-auth:9.6.1'
    compile 'com.google.code.gson:gson:2.2.2'
    compile 'com.android.volley:volley:1.0.0'
    //compile 'org.apache.ant:ant:1.8.0'
}

apply plugin: 'com.google.gms.google-services'

________________________________-

Added my project gradle project

    // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

What's the problem? It keeps me saying the same thing everytime... Thank You.

I add a Screenshot:

Error

2 Answers2

0

You've commented out the repositories block, so Gradle doesn't know where to find the library. Ensure you have a repositories block like so:

repositories {
    jcenter()
}
ditn
  • 1,386
  • 1
  • 10
  • 23
  • Thank you for the answer, but it keeps me saying the same. I've added that and at :app:mergeDebugResources it failed me... And I think I have an idea, but doesn't work.. – AlbusAllDay Jan 10 '17 at 10:10
0

Try code on your module build.gradle:

android {
 compileSdkVersion 24
    buildToolsVersion "24.0.3"
    defaultConfig {
        applicationId "com.example.informatica.xabiagame"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true

        jackOptions {
            enabled true
        }
// ...
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
// ...
}
sivaBE35
  • 1,876
  • 18
  • 23