

That's where I discovered that the problem was definitely related to my custom "java-library" wrapper plugin. In order to track down what was going on, I put the offending module into a separate project. JavaExt.targetCompatibility = JavaVersion.toVersion( versions.getProperty("java-target-compatibility"))Īnd that solved the issue for me! The only useful information I got from gradle on resolving the problem is that it let me know the offending module, which was a module that didn't need any dependencies.

JavaExt.sourceCompatibility = JavaVersion.toVersion( versions.getProperty("java-source-compatibility")) I changed the above to: val javaExt:JavaPluginExtension = ("java") as JavaPluginExtension Be sure that Automatically check for updates is selected, then choose a channel from the list, as shown in figure 2. In the left panel, click Appearance & Behavior > System Settings > Updates.

First you create the wrapper, then tell it to use the Gradle version of your choice: gradle. Here is my global adle buildscript " That's what caused my problem. This video tutorial shows you how to update both gradle and gradle plugin to latest version using android studio.How to update gradle in android studio & H. To open the Preferences window, click File > Settings (on macOS, Android Studio > Settings ). You can also tell Gradle to update itself using a Gradle wrapper. I created gradle.properties file in my /home/user/.gradle folder with these setting. I have had a good look online but still cant seem to find a solution. I suspect its something to do with proxy setting for gradle. I cant seem to get build tools for the latest gradle at all.
