exequielc
exequielc

Reputation: 701

Gradle stop building task

Gradle stop build task when click any gradle task on Android Studio 2.2.3.

There's no error on screen or any error message

What I'm doing wrong ?

Some additional data Android Studio 2.2.3 Gradle 'com.android.tools.build:gradle:2.2.3'

Gradle top level build file

    buildscript {
    repositories {
        jcenter()
        jcenter()
    }
    dependencies {

        classpath 'com.android.tools.build:gradle:2.2.3'

    }
}

allprojects{
    repositories {
        jcenter()
            jcenter()
    }
    }

enter image description here

This is my build.gradle file.

def final myapplicationId = "com.package.myapp"
def final versionnameapp  = "1"
def final versioncodeapp  = 1


allprojects {
repositories {
    // mavenCentral()
    jcenter()
    maven { url "https://jitpack.io" }
    maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }
}
}


apply plugin: 'com.android.application'


configurations {
compile.exclude group: 'javax.inject', module: 'javax.inject'
}



android {
useLibrary 'org.apache.http.legacy'

compileSdkVersion 23
buildToolsVersion "23.0.2"

compileOptions {

    encoding "UTF-8"
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
    abortOnError false
}

dexOptions {

    jumboMode true
}


signingConfigs {
    release {
        keyAlias 'chess'
        keyPassword 'android'
        storeFile file('/keystore/sam.keystore')
        storePassword 'android'

    }

}

packagingOptions {
    exclude 'META-INF/DEPENDENCIES.txt'
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/dependencies.txt'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/LGPL2.1'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/INDEX.LIST'
    exclude 'META-INF/ASL2.0'

}


defaultConfig {
    targetSdkVersion 23
    renderscriptTargetApi 19
    renderscriptSupportModeEnabled false

    multiDexEnabled true
    minSdkVersion 14

   applicationId = myapplicationId 

}


buildTypes {
    release {
        signingConfig signingConfigs.release
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'),     'proguard-rules.pro'
    }
    debug {

        defaultConfig {
            debuggable true
            versionName = versionnameapp   + "-DEBUG"
        }
    }

}


afterEvaluate {
    tasks.matching {
        it.name.startsWith('dex')
    }.each { dx ->
        if (dx.additionalParameters == null) {
            dx.additionalParameters = []
        }
        dx.additionalParameters += '--multi-dex'
        //        dx.additionalParameters += "--main-dex-    list=$projectDir/multidex.keep".toString()
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':reportes')
compile project(':locationlib')

compile 'com.android.support:percent:23.3.0'
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
compile 'joda-time:joda-time:2.3'

compile 'com.android.support:multidex:1.0.1'
compile 'com.github.amlcurran.showcaseview:library:5.0.0'
compile 'ch.acra:acra:4.5.0'

compile 'com.pnikosis:materialish-progress:1.7'

compile 'com.android.support:design:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.github.panwrona:DownloadProgressBar:1.1'

compile 'org.jsoup:jsoup:1.8.3'

compile 'com.cleveroad:slidingtutorial:0.9.5'
}

Thanks in advance

Upvotes: 2

Views: 486

Answers (1)

Vampire
Vampire

Reputation: 38619

Execute gradlew assemble from the command-line. There you will get the error that you are missing.

Upvotes: 1

Related Questions