- My solution is simple, don't look at the error notification in Build - Run tasks (which should be Execution failed for task ':app:compileDebugJavaWithJavac')
- Just fix all errors in the Java Compiler section below it.
Showing posts with label Android Application Development. Show all posts
Showing posts with label Android Application Development. Show all posts
Android Studio Development - Execution failed for task ':app:compileDebugJavaWithJavac' Android Studio
Android - Application Development - Error (minSdk(API 23)> deviceSdk(API 19) error)
You have set minimal SDK on your project is API 23 (marshmallow) and your device or emulator has SDK(API 19, Kitkat). Just go to build.gradle(Module:app) and change minSdkVersion:
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "YOUR PACKAGE"
minSdkVersion 17 //change here
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Subscribe to:
Posts (Atom)