Has been compiled by a more recent version of the Java Runtime (class file version 57.0)

You need to double check the PATH environment setting. C:\Program Files\Java\jdk-13 you currently have there is not correct. Please make sure you have the bin subdirectory for the latest JDK version at the top of the PATH list. java.exe executable is in C:\Program Files\Java\jdk-13\bin directory, so that is what you need to have in PATH. … Read more

What is the difference between compileSdkVersion and targetSdkVersion?

compileSdkVersion The compileSdkVersion is the version of the API the app is compiled against. This means you can use Android API features included in that version of the API (as well as all previous versions, obviously). If you try and use API 16 features but set compileSdkVersion to 15, you will get a compilation error. … Read more

Changing API level Android Studio

When you want to update your minSdkVersion in an existent project… Update build.gradle(Module: app) – Make sure is the one under Gradle Script and it is NOT build.gradle(Project: yourproject). An example of build.gradle: apply plugin: ‘com.android.application’ android { compileSdkVersion 28 buildToolsVersion “28.0.2” defaultConfig { applicationId “com.stackoverflow.answer” minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName “1.0” } … Read more

Automatically accept all SDK licences

UPDATE 2021 This should be the accepted answer as its easy and upto date AndroidSDK can finally accept licenses. Go to Android\sdk\tools\bin yes | sdkmanager –licenses EDIT: as pointed out in the comments by @MoOx, on macOS, you can do yes | sudo ~/Library/Android/sdk/tools/bin/sdkmanager –licenses as pointed out in the comments by @pho, @mikebridge and … Read more