Could not find or load main class org.gradle.wrapper.GradleWrapperMain

In addition to @RaGe’s answer may be the situation I faced where i had a global git ignore that was ignoring .jar files and so the gradle wrapper jar was never being committed. Thus I was getting that error on the Jenkins server after an attempted /var/lib/jenkins/my_project/gradlew build. I had to explicitly force an add … Read more

Android Studio: Plugin with id ‘android-library’ not found

Instruct Gradle to download Android plugin from Maven Central repository. You do it by pasting the following code at the beginning of the Gradle build file: buildscript { repositories { mavenCentral() } dependencies { classpath ‘com.android.tools.build:gradle:1.1.1’ } } Replace version string 1.0.+ with the latest version. Released versions of Gradle plugin can be found in … Read more

Gradle: Could not determine java version from ‘11.0.2’

[*] There are two different Gradle applications in your system. the system-wide Gradle This application is invoked by gradle (arguments). the gradle-wrapper The gradle-wrapper is specific to every project and can only be invoked inside the project’s directory, using the command ./gradlew (arguments). Your system-wide gradle version is 5.1.1 (as the OP explained in the … Read more