개발/유니티

유니티 AOS 빌드 시 나타나는 에러 정리

셩잇님 2024. 3. 4. 12:55
반응형

 

 

최초 작성일 : 24.03.05

수정일 : X.X.X

 


 

 AOS를 빌드하면서 다음과 같은 에러들이 나타났는데, 이 때에 어떻게 해결했는지를 까먹지 않고 정리하기 위해 작성한다. 그래야 나중에 나도 혹시 까먹으면 참고하기 위해... 🤣

 

나의 해결 과정 순서 :

첫 빌드 시 에러는 1, 2, 4가 떴었으며 1을 해결하니 3, 5가 나타났다. 에러 3번 같은 경우는 내 해결범위 안을 벗어나는 것 같아 에러 5번을 해결하고자 하였으나 점점 일이 커지는 것 같았다. 따라서 상황을 전부 롤백하여 에러 4를 해결하였더니 모든 것이 완벽하게 동작하였다. 😎

 


 

에러 1. AndroidManifest 파일 내 퍼미션 에러

 

 에러 전문 :

uses-ermission#android.permission.READ_EXTERNAL_STORAGE was tagged at AndroidManifest.xml:0 to replace another declaration but no other declaration present

 

더보기

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseResources UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :launcher:prepareLintJar UP-TO-DATE

> Task :unityLibrary:processReleaseManifest
D:\Project\프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\AndroidManifest.xml:11:3-32:17 Warning:
application@android:icon was tagged at AndroidManifest.xml:11 to replace other declarations but no other declaration present

> Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE

> Task :launcher:processReleaseManifest
D:\Project\프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:4:3-83 Warning:
application@android:icon was tagged at AndroidManifest.xml:4 to replace other declarations but no other declaration present
D:\Project\프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:17:5-80 Warning:
uses-permission#android.permission.READ_EXTERNAL_STORAGE was tagged at AndroidManifest.xml:17 to replace another declaration but no other declaration present
aapt2.exe W 02-21 19:35:42 286168 284676 LoadedArsc.cpp:657] Unknown chunk type '200'.


> Task :launcher:processReleaseResources
> Task :launcher:checkReleaseDuplicateClasses FAILED

> Task :unityLibrary:compileReleaseJavaWithJavac
92 actionable tasks: 5 executed, 87 up-to-date
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

 해결 내용 :

결론 : Manifest 파일에는 문제가 없을 수 있다.

 

 이전까지 빌드가 잘 되던 상태에서 갑자기 Manifest 파일에서 에러가 날 경우, Manifest의 에러가 아닌 다른 에러로 인한 문제일 수 있다. 나는 '에러를 하나하나씩 지워보자.' 라는 생각에 해당 에러 전문이 나타난 Manifest 영역을 미리 백업해둔 채 지워도 보고, 주석도 걸어서 재빌드했지만 결국 Manifest 파일 내에서 에러 전문이 나타난 곳을 모두 처리하면 에러 3이 나타났다. 따라서 해당 파일을 다시 롤백해서 다른 에러 먼저 처리하자 라는 생각으로 Manifest 파일은 건들이지 않았다.

 


 

에러 2. android.enableR8 = false 에러

 

 에러 전문 : 

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

 

 해결 내용 : 

결론 : 수정해도 이러한 저러한 에러를 내뿜을 것을 알기에, 다른 에러먼저 처리

 

 이전 회사에서 많이 겪었던 R8 = false 에러이다. 해당 에러를 해결하기 위해 많이 검색도 해보고 수정해보았지만 R8 에러는 Disable, able 여부와 관계 없이 수정해주면 에러 1과 같이 또 다른 에러를 내뿜었다. 따라서 해당 에러는 수정하지 않은 채 다른 에러만을 먼저 확인해보았다.

 


 

에러 3. Task :unityLibrary:processReleaseManifest FAILED 에러

 

 에러 전문 :

더보기

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
WARNING: [Processor] Library 'D:\Project\프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.core.core-1.2.0.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
 Example of androidX reference: 'androidx/versionedparcelable/VersionedParcel'
 Example of support library reference: 'android/support/v4/app/RemoteActionCompatParcelizer'

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseBuildConfig
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease UP-TO-DATE

> Task :unityLibrary:processReleaseManifest
D:\Project\프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\AndroidManifest.xml:9:3-89 Warning:
uses-permission#android.permission.RECORD_AUDIO was tagged at AndroidManifest.xml:9 to remove other declarations but no other declaration present
D:\Project\ 프로젝트 명 \Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\AndroidManifest.xml:10:3-93 Warning:
uses-permission#android.permission.READ_PHONE_STATE was tagged at AndroidManifest.xml:10 to remove other declarations but no other declaration present
D:\Project\ 프로젝트 명 \Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\AndroidManifest.xml:11:3-32:17 Warning:
application@android:icon was tagged at AndroidManifest.xml:11 to replace other declarations but no other declaration present

> Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:parseReleaseLocalResources
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE

> Task :launcher:processReleaseManifest
D:\Project\ 프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:4:3-83 Warning:
application@android:icon was tagged at AndroidManifest.xml:4 to replace other declarations but no other declaration present
D:\Project\ 프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:17:5-80 Warning:
uses-permission#android.permission.READ_EXTERNAL_STORAGE was tagged at AndroidManifest.xml:17 to replace another declaration but no other declaration present
D:\Project\ 프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:18:5-20:31 Warning:
uses-permission#android.permission.RECORD_AUDIO was tagged at AndroidManifest.xml:18 to remove other declarations but no other declaration present

D:\Project\ 프로젝트 명\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:21:5-23:31 Warning:
uses-permission#android.permission.READ_PHONE_STATE was tagged at AndroidManifest.xml:21 to remove other declarations but no other declaration present

> Task :launcher:prepareLintJar UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses FAILED
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:generateReleaseRFile
> Task :launcher:mergeReleaseResources
93 actionable tasks: 12 executed, 81 up-to-date

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

 해결 내용 :

결론 : 없음

 

 위 에러를 해결하기 위해 검색하고 링크를 들어갔을 때, 이미 '내 선에서 해결할 수 없겠다.'를 문득 느꼈다. 매니페스트 파일 병합 등 내가 아직 미처 모르는 복잡한 것들이 얽히고 설켜있다는 것을 깨달아서 해당 방법으로는 내가 처리할 수 있는 것이 아무것도 없겠구나.. 싶어 해당 에러는 보류한 채 다른 에러먼저 해결하고자 했다.

 

 에러를 해결하기 위해 참고한 사이트 : 
1. https://github.com/facebook/react-native/issues/33205

 

> Task :app:processReleaseMainManifest (Execution optimizations have been disabled for task ':app:processReleaseMainManifest')

Description F:\Project Fivers\fixlancer\android>gradlew assembleRelease -x bundleReleaseJsAndAssets Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details Ta...

github.com

2. https://developer.android.com/build/manage-manifests?hl=ko#merge-manifests

 

매니페스트 파일 관리  |  Android Studio  |  Android Developers

매니페스트 빌드 변수, 매니페스트 병합 및 매니페스트 병합 도구에 관해 알아보세요.

developer.android.com


 

에러 4. checkReleaseDuplicateClasses 에러

 

 에러 전문 :

더보기

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class cohttp://m.google.android.gms.internal.tasks.zza found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.CancellationToken found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.CancellationTokenSource found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.Continuation found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.DuplicateTaskCompletionException found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.OnCanceledListener found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.OnCompleteListener found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.OnFailureListener found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.OnSuccessListener found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.OnTokenCanceledListener found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.RuntimeExecutionException found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.SuccessContinuation found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.Task found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.TaskCompletionSource found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.TaskExecutors found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.Tasks found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zza found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzaa found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzab found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzac found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzb found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzc found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzd found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zze found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzf found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzg found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzh found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzi found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzj found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzk found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzl found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzm found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzn found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzo found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzp found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzq found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzr found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzs found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzt found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzu found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzv found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzw found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzx found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzy found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  Duplicate class cohttp://m.google.android.gms.tasks.zzz found in modules jetified-cohttp://m.google.android.gms.play-services-tasks-17.2.1-runtime.jar (:cohttp://m.google.android.gms.play-services-tasks-17.2.1:) and jetified-play-services-tasks-18.0.2-runtime.jar (cohttp://m.google.android.gms:play-services-tasks:18.0.2)
  
  Go to the documentation to learn how to Fix dependency resolution errors.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

 해결 내용 : 

결론 : 유니티 내부에서 파일을 검색하여 삭제!

 

 돌고돌아 여기까지 왔고, 에러 4가 결국 범인이였다. 뒤끝 SDK 업데이트 이 후, 중복된 클래스들이 생겨서 난 문제였나 보다. 참고 사이트 2번을 보고 확인해보니 에러 파일까지 완전히 동일한 상황은 아니였지만, 나와 같은 에러이므로 참고하였다. 따라서 유니티 내부에서 중복된 파일이 있나?  확인해보니 아니나 다를까 파일들이 있었다. 결국 중복된 파일들을 모두 삭제 후 재빌드하니 정상적으로 빌드가 진행되었다. 🤯

 

에러를 해결하기 위해 참고한 사이트 : 

1. https://today7e.blogspot.com/2019/11/unity-android-unity-ads.html

 

[Unity Android] Unity Ads 추가 에러

게임 개발에 대한 이야기를 나누는 블로그입니다.

today7e.blogspot.com

2. https://return-1.tistory.com/entry/APK-%EB%B9%8C%EB%93%9C-%EC%8B%A4%ED%8C%A8Execution-failed-for-task-checkReleaseDuplicateClasses

 

Unity 빌드 실패 Execution failed for task ':checkReleaseDuplicateClasses'.

facebook-unity-sdk-7.21.0 Import 후 Unity APK 빌드 실패 에러 [에러 로그] Execution failed for task ':checkReleaseDuplicateClasses'. > 1 exception was raised by workers: java.lang.RuntimeException: Duplicate class com.android.installreferrer.Buil

return-1.tistory.com


 

 

에러 5. workers$actionFacade 에러

 

 에러 전문 : 

a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionFacade. see the console for details.

 

Console Details은 없다. 🤣

 

 해결 내용 :

결론 : 아래 내용 따라해도 해결 못함!

 

에러와 관련하여 참고한 사이트 링크 1에서 제시한 내용을 모두 해보았다.

1. 키 비밀번호 확인, 키 삭제, 키 재발급

2. 프로젝트 재실행

3. Preferences JDK, SDK, NDK, Gradle 관련 다양한 설정 (재설치, 경로설정, 버전확인 등)

4. Split Application Binary 설정

그럼에도 불구하고 해결되지 않았다. 

 

 따라서 2번 사이트에서 언급하는 내용도 모두 진행하였다. 결과론적으로 모든 에러 수정사항을 처리해도 에러가 계속 나타났다. 따라서 상황을 최초 에러 발생 상태로 롤백하였다.

 

 에러를 해결하기 위해 참고한 사이트 링크 : 
1. https://forum.unity.com/threads/a-failure-occurred-while-executing-com-android-build-gradle-internal-tasks-workers-actionfacade.958112/

 

a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade

I am trying to get my game as APK but when I try to build APK I am getting this error : a failure occurred while executing...

forum.unity.com

2. https://appletreeworkplace.tistory.com/6

 

[유니티] android gradle build failed 뜰 때 해결법

UnityPlayerActivity.java uses or overrides a deprecated API. 갑자기요..? 정상적인 유니티에서 안드로이드 플랫폼 성공 과정이라 하믄~ build gradle project에서 그 다음 Copying APK를 봐야 안심이 된다. 그러나 build gr

appletreeworkplace.tistory.com

 

 


 

 

 

반응형