유니티3D[Unity3D]
Missing ‘package’ key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54 해결
은유지니
2022. 2. 7. 14:48
유니티 AR 프로젝트 android 플랫폼 빌드 중, 다음과 같은 에러가 발생했다.
Missing ‘package’ key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54
해결법은 다음과 같다.
1) Player Settings -> Publish Settings -> Build의 다음 두가지 체크
2) Assets/Plugins/Androld 안 두개의 파일을 볼 수 있을 것이다.
3) 두개의 파일을 메모장으로 열면, 가장 상단에
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
라는 주석을 지운다.
4) 그리고 가장 위에 다음 코드를 추가한다.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
// Must be Android Gradle Plugin 3.6.0 or later. For a list of
// compatible Gradle versions refer to:
// https://developer.android.com/studio/releases/gradle-plugin
classpath 'com.android.tools.build:gradle:3.6.0'
}
}
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'libs'
}
}
}
빌드하면, 해당 에러는 사라진 것을 확인할 수 있을 것이다!
참고로 Unity 2019.4.28f1, ARCore package 4.1.9 버전을 사용 중이다.