Unity

    [Android/Unity] Failed to install the following Android SDK packages as some licences have not been accepted.

    문제 Android AAR 플러그인을 유니티 프로젝트에 추가하여 유니티 프로젝트를 빌드 시 아래와 같은 에러를 마주하는 경우가 있다. Failed to install the following Android SDK packages as some licences have not been accepted. 위 에러는 SDK에 라이센스가 없어서 발생하는 문제입니다. 해당 문제의 전체 에러 콘솔로그이다. FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':unityLibrary:compileDebugAidl'. > Failed to install the foll..

    [Android/Unity] 터미널 환경에서 빌드하기 (Ubuntu)

    유니티프로젝트 를 터미널 환경에서 빌드를 해야할 상황이 있었다. 젠킨스를 사용하여 유니티 프로젝트를 안드로이드 타겟으로 빌드를 해야하는 요구사항이 있었고, 해당 사항을 충족시키기 위한 상황이 있었다. Unity 프로젝트에 스크립트 작성하기 유니티 프로젝트 하위에 Assets/Editor/ 하위에 빌드를 위한 스크립트를 하나 생성한다. 아래 예시는 유니티에서 제공하는 스크립트를 조금 변경하였다. (https://docs.unity3d.com/ScriptReference/BuildPipeline.BuildPlayer.html) 아래 코드는 안드로이드 빌드에 대한 내용이다. using UnityEditor; using UnityEngine; using UnityEditor.Build.Reporting; pub..

    [Android/Unity] TargetSDK version 31 이상에서 Manifest merger failed 문제

    문제 상황 Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are presentandroid:exported 란? 이 속성은 어플리케이션에서 Activity, Service 등에 접근할 수 있으며 다른 애플리케이션의 구성요소로 Activity를 시작할 수 있는지 설정합니다. 할 수 있으면 "true", 할 수 없으면 "false"입니다. "false"인 경우, 해당 액티비티는 같은 애플리케이션의 구성요소 또는 사용자 ID가 같은 애플리케이션으로만 시작할 수 있습니다. 인텐트 필터를 사용하는 경우 이 요소를 "false"로 설정하면 안 됩니다..