


When I look to step by step task execution of gradle, I saw the problems. There is an error in my code, but Android Studio don`t show me errors in code, for studio everything is fine. TestInstrumentationRunner ""Įrror on gradle task ':app:compileDebugJavaWithJavac' testInstrumentationRunner ".AndroidJUnitRunner" VersionCode flutterVersionCode.toInteger() TODO: Specify your own unique Application ID (). I recommend 23 because that removes some other issues as well. To migrate to AndroidX, you need to set the SDK versions to 21 or higher. Possibly with using correct dependency versions. Just fix all errors in the Java Compiler section below it.įlutter error: Execution failed for task ':app:compileDebugJavaWithJavac'Įdit: Solution was a combination of creating a new project with AndroidX selected and add the proper SDK versions to the gradle file.

My solution is simple, don't look at the error notification in Build - Run tasks (which should be Execution failed for task ':app:compileDebugJavaWithJavac') Execution failed for task ':app:compileDebugJavaWithJavac' Android Studio 3.1 Update If you didn't install the buildTools for this version, please download it with SDKManager as hint. Try to upgrade your buildToolsVersion to "23.0.1", like this: compileSdkVersion 23 Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
