Android 아카이브는 Android 라이브러리의 컴파일된 버전으로, 배포하려는 플러그인의 포맷을 지정하는 데 권장되는 방법입니다.하지만 플러그인을 생성하는 동안 Unity 외부에서 플러그인을 컴파일하고 결과를 다시 임포트할 필요가 없으므로 Android 라이브러리 포맷으로 작업하는 것이 더 빠릅니다.나중에 플러그인을 전혀 수정하지 않거나 자주 반복해서 수정하려는 경우 Android 라이브러리를 사용하십시오.플러그인 개발을 완료한 후에는 Android 아카이브에 컴파일하십시오.
Android 라이브러리는 모든 플러그인 에셋과 매니페스트가 포함된 특정 구조의 디렉토리입니다.
빌드 또는 익스포트 과정에서 Unity가 최종 Gradle 프로젝트를 생성하면 모든 Android 라이브러리 프로젝트가 자동으로 포함되고 함께 빌드됩니다.Unity는 Android Studio 프로젝트에 여러 개의 하위 프로젝트가 있을 때 빌드하는 것과 동일한 방식으로 이 작업을 수행합니다.
Android 아카이브(AAR) 플러그인은 Android 앱 모듈의 종속 요소로 사용할 수 있는 Android 라이브러리 프로젝트의 컴파일된 버전입니다..aar파일 자체는 컴파일된 코드, 에셋, 플러그인 매니페스트가 모두 포함된
.zip` 아카이브입니다.AAR의 구조에 대한 자세한 내용은 AAR 파일의 구조를 참조하십시오.
출력 패키지에 그대로 복사해야 하는 에셋을 Unity 애플리케이션에 추가해야 하는 경우, 원시 에셋을 Android 라이브러리 프로젝트 또는 AAR에 포함하십시오.이러한 에셋에 액세스하려면 Java 코드에서 getAssets Android API를 호출하십시오.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.