# compileDebugJavaWithJavac: FAILED - Appflow

**URL:** <https://forum.ionicframework.com/t/compiledebugjavawithjavac-failed-appflow/214837>\
**Category:** Appflow\
**Created:** [September 10, 2021, 1:43pm UTC](https://forum.ionicframework.com/t/compiledebugjavawithjavac-failed-appflow/214837 "2021-09-10T13:43:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maylorsan](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@maylorsan](https://forum.ionicframework.com/u/maylorsan)\
**Post date:** [September 10, 2021, 1:43pm UTC](https://forum.ionicframework.com/t/compiledebugjavawithjavac-failed-appflow/214837/1 "2021-09-10T13:43:14Z")

</div>

Can’t build android applications, fail on the task: capacitor-android: compileDebugJavaWithJavac.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/9/8/989f023b5c802f250fdcf57edf972fe34d4ef559.png)

Versions:

Capacitor v3.2.2  
Gradle v7.0  
Android Gradle Plugin v4.2.0

build.gradle:

```auto
buildscript {

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

apply from: "variables.gradle"

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

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

```

variables.gradle:

```auto
ext {
    minSdkVersion = 21
    compileSdkVersion = 30
    targetSdkVersion = 30
    androidxActivityVersion = '1.2.0'
    androidxAppCompatVersion = '1.2.0'
    androidxCoordinatorLayoutVersion = '1.1.0'
    androidxCoreVersion = '1.3.2'
    androidxFragmentVersion = '1.3.0'
    junitVersion = '4.13.2'
    androidxJunitVersion = '1.1.3'
    androidxEspressoCoreVersion = '3.4.0'
    cordovaAndroidVersion = '7.0.0'
}

```

---

<div class="post-metadata">

**Author:** ![jcesarmobile](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jcesarmobile/32/127095_2.png) [@jcesarmobile](https://forum.ionicframework.com/u/jcesarmobile)\
**Post date:** [September 16, 2021, 1:36pm UTC](https://forum.ionicframework.com/t/compiledebugjavawithjavac-failed-appflow/214837/2 "2021-09-16T13:36:58Z")

</div>

can you share the whole error message? gradle usually tells you what class/code failed to compile…
