Gradle 0.9.+/0.9.2 error: Unable to load class ‘com.android.builder.testing.api.DeviceProvider’

Per the latest in the bug report, the issue was that version 0.9.2 was being served from Maven central even though all the necessary components weren’t yet available (and gradle doesn’t register that as a problem). This breaks things because pieces are missing. Version 0.9.2 is now completely available and works, but if you’re seeing … Read more

Android buildscript repositories: jcenter VS mavencentral

At Bintray I just rebloged a very detailed blog post describing the reasons why Google made this change. Here are the most important points: JCenter is a Java repository in Bintray, which is the largest repo in the world for Java and Android OSS libraries, packages and components. All the content in JCenter is served … Read more

Why am I getting “Received fatal alert: protocol_version” or “peer not authenticated” from Maven Central?

Solution 1: configure Java 7 It is need to enable TLS 1.2 protocol with Java property in the command line mvn -Dhttps.protocols=TLSv1.2 install install is just an example of a goal The same error for ant can be solved by this way java -Dhttps.protocols=TLSv1.2 -cp %ANT_HOME%/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher Solution 2: use Java 7 with Oracle Advanced … Read more

Maven dependencies are failing with a 501 error

The reason for the observed error is explained in Central 501 HTTPS Required Effective January 15, 2020, The Central Repository no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS. It looks like latest versions of Maven (tried with 3.6.0, 3.6.1) are already using the … Read more