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

Android Studio Error “Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8”

Make sure that your Gradle is using the proper JDK. Try running ./gradlew –version in your project’s directory. The output should be something like this: Gradle 7.0-rc-2 ———————————————————— Build time: 2021-04-01 21:26:39 UTC Revision: 912a3368b654b71250dfc925a20d620393 Kotlin: 1.4.31 Groovy: 3.0.7 Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020 JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10) OS: Linux … Read more

Android Studio: Add jar as library?

I’ve been struggling with the same thing for many hours, trying to get the Gson jar to work no less. I finally cracked it – here are the steps I took: Put the Gson jar (in my case, gson-2.2.4.jar) into the libs folder Right click it and hit ‘Add as library’ Ensure that compile files(‘libs/gson-2.2.4.jar’) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)