I'm using Intellij Idea. I'm trying to import couch-lite into my project using Maven.
My pom file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>*</groupId>
<artifactId>*</artifactId>
<version>0.1.0</version>
<repositories>
<repository>
<id>com.couchbase.lite</id>
<name>couchbase-lite</name>
<url>http://files.couchbase.com/maven2/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.couchbase.lite</groupId>
<artifactId>couchbase-lite-android</artifactId>
<version>1.0.0</version>
<type>aar</type>
</dependency>
</dependencies>
The result:
As you can see, I can't access the classes.jar of the aar library. Does anyone have any idea how I can reference the files in that jar?
I'm now using Gradle
to build the project. The build times are much longer, but all the libraries are being loaded correctly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.