I am trying to use buildSrc for dependency management in the new Android 4.2 Preview version and getting this error.
Cannot access 'java.lang.Object' which is a supertype of 'org.gradle.api.artifacts.repositories.MavenArtifactRepository'. Check your module classpath for missing or conflicting dependencies
Cannot access class 'java.net.URI'. Check your module classpath for missing or conflicting dependencies
I figured it out, it's due to the Java default JDK coming with the new Android Studio, I believe this will be fixed in the release version.
To quickly fix this there are two options:
How to change the JDK in Android studio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With