[英]Maven Import AAR Classes.jar
I'm using Intellij Idea. 我正在使用Intellij Idea。 I'm trying to import couch-lite into my project using Maven. 我正在尝试使用Maven将Couch-lite导入到我的项目中。
My pom file: 我的pom文件:
<?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. 如您所见,我无法访问aar库的classes.jar。 Does anyone have any idea how I can reference the files in that jar? 有谁知道如何引用该jar中的文件?
I'm now using Gradle
to build the project. 我现在正在使用Gradle
构建项目。 The build times are much longer, but all the libraries are being loaded correctly. 构建时间要长得多,但是所有库都已正确加载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.