Automatically accept all SDK licences

Since gradle android plugins 2.2-alpha4: Gradle will attempt to download missing SDK packages that a project depends on Which is amazingly cool and was know to be a JakeWharton project. But, to download the SDK library you need to: accept the license agreements or gradle tells you: You have not accepted the license agreements of … Read more

What is the difference between compileSdkVersion and targetSdkVersion?

I have looked at the documentation for building with Gradle, but I’m still not sure what the difference between compileSdkVersion and targetSdkVersion is. All it says is: The compileSdkVersion property specifies the compilation target. Well, what is the “compilation target”? I see two possible ways to interpret this: compileSdkVersion is the version of the compiler … Read more

Difference between OpenJDK and Adoptium/AdoptOpenJDK

In short: OpenJDK has multiple meanings and can refer to: free and open source implementation of the Java Platform, Standard Edition (Java SE) open source repository — the Java source code aka OpenJDK project prebuilt OpenJDK binaries maintained by Oracle prebuilt OpenJDK binaries maintained by the OpenJDK community AdoptOpenJDK — prebuilt OpenJDK binaries maintained by community (open source … Read more

Eclipse error, “The selection cannot be launched, and there are no recent launches”

Eclipse can’t work out what you want to run and since you’ve not run anything before, it can’t try re-running that either. Instead of clicking the green ‘run’ button, click the dropdown next to it and chose Run Configurations. On the Android tab, make sure it’s set to your project. In the Target tab, set … Read more