내가 정의하여 .JAR
내로 .aar 파일을 변환 할 필요가 AAR은 JAR하지 않고 반드시 JAR에 "변환"수 없습니다.
종종 이슈가 이슈의 일부인 Java 코드 이상이기 때문에 JAR 대신 AAR로 이슈가 배포되는 경우가 많습니다.
나는 안드로이드 SDK에서, 엑스트라/안드로이드/m2repository/COM은/안드로이드/지원/지원-V4 라이브러리는
올바른 24.1 버전까지 수업을, 의미한다. 그 이후로 support-v4
은 단순히 전 이적 종속성의 컨테이너였습니다. 이슈 옆의 POM 파일에 해당 목록이 표시됩니다.
<?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>com.android.support</groupId>
<artifactId>support-v4</artifactId>
<version>25.3.1</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-compat</artifactId>
<version>25.3.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-media-compat</artifactId>
<version>25.3.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-core-utils</artifactId>
<version>25.3.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-core-ui</artifactId>
<version>25.3.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-fragment</artifactId>
<version>25.3.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
: 예를 들어
는 25.3.1
POM 파일은 당신이 AAR-유물 인식 IDE (안드로이드 스튜디오 인 IntelliJ의 IDEA 등)에 support-v4
를 사용할 때 당겨 될 모든 아티팩트를 보여줍니다
<type>
요소에서 알 수 있듯이이 전이 종속성 자체는 대부분 AAR입니다.
경우에 따라 AAR에는 JAR 이외의 항목이 많이 포함되지 않습니다. 예를 들어, 25.3.1
support-core-utils
— support-v4
을 가져 오는 AAR 중 하나는 —이고 그 중 classes.jar
은 중요하지 않습니다.
그러나 다른 AAR에는 JAR 이외의 것이 있습니다. 예를 들어, support-compat
및 support-media-compat
에는 AIDL 파일이 있습니다. 기타 AAR — (예 : appcompat-v7
—)은 리소스 또는 자산이 있습니다. AAR에서 JAR을 사용하려고 시도하고 이러한 리소스 또는 AIDL 파일 또는 무엇이든 존재할 것으로 기대하는 클래스를 사용하려고하면 응용 프로그램이 중단됩니다.
AAR을 구식 Eclipse 라이브러리 프로젝트로 변환 할 수 있습니다. 속담처럼, 귀하의 마일리지가 다를 수 있습니다. 또한 IBM MobileFirst가 라이브러리 프로젝트를 지원하는지는 잘 모릅니다.