Unity는 Gradle을 사용하여 Android 애플리케이션을 빌드하므로 빌드 프로세스와 Unity가 Gradle과 상호작용하는 방식을 이해하는 것이 좋습니다. Gradle을 사용하면 플레이어 설정과 다른 Unity 창을 사용하여 최종 빌드의 대부분의 측면을 설정할 수 있지만, 더 효율적으로 제어하려면 매니페스트 파일과 템플릿 파일을 덮어쓰거나 프로젝트를 익스포트하여 Android Studio에서 편집해야 합니다.
Android 애플리케이션을 빌드하려면 다음 단계를 따르십시오.
libil2cpp.so
라이브러리를 Gradle 프로젝트에 배치합니다.Unity는 Android용 플레이어를 빌드할 때 증분 빌드 파이프라인을 사용합니다. 다음 Android 관련 증분 빌드 파이프라인 동작을 참조하십시오.
IPostGenerateGradleAndroidProject를 구현하고 증분 빌드 파이프라인에서 사용하는 Android 파일이나 에셋을 수정하거나 이동하는 경우, 프로젝트를 빌드할 때 문제가 발생할 수 있습니다. Gradle 프로젝트 파일을 수정하기만 하려는 경우, IPostGenerateGradleAndroidProject
대신 Android 프로젝트 설정 관리자를 사용하는 것이 가장 좋습니다. 사용 사례에 대해 IPostGenerateGradleAndroidProject
를 사용하고 증분 빌드 파이프라인 문제를 해결해야 하는 경우, 비증분 빌드 생성을 참조하십시오.
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.