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

  • 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.
enter image description here

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
    }