Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)

I was trying to develop an Android app using an Android studio. But it is throwing an error:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

> Compilation failed; see the compiler error output for details.

* What went wrong:

Execution failed for task ':app:compileDebugJavaWithJavac'.

> Compilation failed; see the compiler error output for details.

This is the build gradle:

apply plugin: 'com.android.application'

android {

compileSdkVersion 23

buildToolsVersion "21.1.2"

defaultConfig {

    multiDexEnabled true

    applicationId "com.tubbs.citychurchob"

    minSdkVersion 14

    targetSdkVersion 23

    versionCode 1

    versionName "1.0"

}

buildTypes {

    release {

        minifyEnabled false

      proguardFiles getDefaultProguardFile('proguard-android.txt'),        'proguard-rules.pro'

    }

}

}

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

compile fileTree(dir: 'libs', include: 'Parse-*.jar')

compile 'com.android.support:appcompat-v7:23.1.0'

compile 'com.android.support:cardview-v7:23.1.0'

compile 'com.parse.bolts:bolts-android:1+'

compile 'com.android.support:recyclerview-v7:23.1.0'

}

Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

You can upgrade the build tool version, then it will work:

compileSdkVersion 23

buildToolsVersion "23.0.1"

I hope this will help.

Want to become a Java expert? join Java Course now!!

Browse Categories

...