버그 해결을 위한 모든 질문을 던져
0 votes
192 views
에러 내용은 간단하게 안드로이드메니페스트 병합 실패이고, 병합이 실패한 특정 aar 내 AndroidManifest를 명시해주고 있습니다.

구글링 후 해결법을 찾아서 수정 후 빌드해보아도, 빌드시 모든 aar을 삭제 후 재생성되는 것을 확인하여 수정이 의미가 없습니다.

aar의 삭제 후 재생성을 막거나, 혹은 재생성을 해도 특정한 aar을 생성 직후 수정하는 방식이 필요한 듯한데 방식을 찾지 못하고 있습니다.

이에 대헤 도움을 요청드립니다.

아래는 유니티 콘솔창에 발생한 에러 전문입니다.

 

Error: [Temp\StagingArea\AndroidManifest-main.xml:51, E:\KaguraProject_TAI_Client\Unity\ProjectA\Temp\StagingArea\android-libraries\com.google.firebase.firebase-iid-17.1.0\AndroidManifest.xml:12] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:

UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
BuildManager:AndroidBuild(ServerName, LocalName, eMarket_Type, LocalName, DateTime) (at Assets/Scripts/Etc/Editor/BuildManager.cs:389)
BuildManager:Android_DevServer_Chinese() (at Assets/Scripts/Etc/Editor/BuildManager.cs:289)

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/NVPACK/jdk1.8.0_77\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/NVPACK/android-sdk-windows\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:51, E:\KaguraProject_TAI_Client\Unity\ProjectA\Temp\StagingArea\android-libraries\com.google.firebase.firebase-iid-17.1.0\AndroidManifest.xml:12] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
  <service
--    @android:name="com.google.firebase.components.ComponentDiscoveryService">
--    <meta-data
--        @android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
  <service
++    @android:exported="false"
++    @android:name="com.google.firebase.components.ComponentDiscoveryService">
++    <meta-data
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml, E:\KaguraProject_TAI_Client\Unity\ProjectA\Temp\StagingArea\android-libraries\com.google.firebase.firebase-analytics-impl-16.3.0\AndroidManifest.xml:12] Skipping identical /manifest/application/receiver[@name=com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver] element.
[Temp\StagingArea\AndroidManifest-main.xml:51, E:\KaguraProject_TAI_Client\Unity\ProjectA\Temp\StagingArea\android-libraries\com.google.firebase.firebase-measurement-connector-impl-17.0.5\AndroidManifest.xml:10] Skipping identical /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element.
[Temp\StagingArea\AndroidManifest-main.xml, E:\KaguraProject_TAI_Client\Unity\ProjectA\Temp\StagingArea\android-libraries\MainLibProj\AndroidManifest.xml:13] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
BuildManager:AndroidBuild(ServerName, LocalName, eMarket_Type, LocalName, DateTime) (at Assets/Scripts/Etc/Editor/BuildManager.cs:389)
BuildManager:Android_DevServer_Chinese() (at Assets/Scripts/Etc/Editor/BuildManager.cs:289)
asked (2 point) , 192 views

질문에 대한 답변을 하려면 로그인 또는 가입해야합니다.

버그 해결을 위해 도움을 구하고, 도움을 주세요. 우리는 그렇게 발전합니다.

throw bug 는 프로그래밍에 대한 전분야를 다룹니다. 질문,논의거리,팁,정보공유 모든 것이 가능합니다. 프로그래밍과 관련이 없는 내용은 환영받지 못합니다.

242 질문
373 answers
379 댓글
475 users