I'm trying to manually download some JAR files from Google Maven. Following official documentation doesn't seem to work. For example:
Am I doing something wrong?
This is because the library is not a jar but an aar (Android Archive). Try
https://dl.google.com/dl/android/maven2/androidx/test/rules/1.1.0/rules-1.1.0.aar
And it will work.
Edit: You can determine this from the <packaging> tag in the pom file:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>androidx.test</groupId>
<artifactId>rules</artifactId>
<version>1.1.0</version>
<packaging>aar</packaging>
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