유니티 - External Dependency Manager - Android Resolves - Force Resolve 클릭 시 에러 발생 문제해결 방법
유니티로 2d게임 제작후 빌드 시(aab파일) 정상적으로 빌드는 되지만, 위와 같이 Force Resolve 시도 시 에러 발생
에러 문구는 아래와 같이 뜸
ERROR: Gradle failed to fetch dependencies.
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...이하 생략(아주 길다)
문제 해결 시도 방법
(아래 2가지 시도 후 에러 안뜸! 성공!)
현재 유니티 버전 2021.3.13f1
구글 플레이 게임즈 플러그인 유니티 버전 play-games-plugin-for-unity-0.11.01
- 1번째 시도
c드라이브 - 사용자 - 유저 - .gradle - chches 폴더 안에 있는 파일 모두 삭제
위와 같이 모두 삭제 시도했으나, 모두 휴지통으로 전달된게 아니라 아래와 같은 폴더가 남아있었음
(정확히 남아있다기보단 수정한 날짜를 보니 새로 생성된게 맞음)
Force Resolve 시도 시 아래와 같이 여전히 에러가 2가지 발생함
▼ 에러 문구 ▼
Running Gradle...
C:\Users\User\Desktop\SCP WAR\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "C:\Users\User\Desktop\SCP WAR\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2021.3.13f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=C:\Users\User\Desktop\SCP WAR\Assets\Plugins\Android" "-PMAVEN_REPOS=file:///C:/Users/User/Desktop/SCP%20WAR/Assets/Firebase/m2repository;file:///C:/Users/User/Desktop/SCP%20WAR/Assets/GooglePlayGames/Editor/m2repository" "-PPACKAGES_TO_COPY=com.google.firebase:firebase-analytics:21.3.0;com.google.firebase:firebase-analytics-unity:11.4.0;com.google.firebase:firebase-common:20.3.3;cohttp://m.google.android.gms:play-services-base:18.2.0;com.google.firebase:firebase-app-unity:11.4.0;com.google.firebase:firebase-auth:22.1.1;com.google.firebase:firebase-auth-unity:11.4.0;com.google.games:gpgs-plugin-support:0.10.14;com.google.android.play:core-common:2.0.0;com.google.android.play:integrity:1.3.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=4.0.1"
Executing command: C:\Users\User\Desktop\SCP WAR\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "C:\Users\User\Desktop\SCP WAR\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2021.3.13f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=C:\Users\User\Desktop\SCP WAR\Assets\Plugins\Android" "-PMAVEN_REPOS=file:///C:/Users/User/Desktop/SCP%20WAR/Assets/Firebase/m2repository;file:///C:/Users/User/Desktop/SCP%20WAR/Assets/GooglePlayGames/Editor/m2repository" "-PPACKAGES_TO_COPY=com.google.firebase:firebase-analytics:21.3.0;com.google.firebase:firebase-analytics-unity:11.4.0;com.google.firebase:firebase-common:20.3.3;cohttp://m.google.android.gms:play-services-base:18.2.0;com.google.firebase:firebase-app-unity:11.4.0;com.google.firebase:firebase-auth:22.1.1;com.google.firebase:firebase-auth-unity:11.4.0;com.google.games:gpgs-plugin-support:0.10.14;com.google.android.play:core-common:2.0.0;com.google.android.play:integrity:1.3.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=4.0.1"
WARNING: Some conflicting dependencies were found.
The following dependency versions were modified:
cohttp://m.google.games:gpgs-plugin-support:0.10.14 --> cohttp://m.google.games:gpgs-plugin-support:+
경고: 일부 충돌하는 종속성이 발견되었습니다. 다음 종속성 버전이 수정되었습니다. com.google.games:gpgs-plugin-support:0.10.14 --> com.google.games:gpgs-plugin-support:+
Processing Assets/Plugins/Android/androidx.annotation.annotation-1.5.0.jar
ProcessAar Assets/Plugins/Android/androidx.annotation.annotation-1.5.0.jar
Processing Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar
ProcessAar Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar
Processing Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar
ProcessAar Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar
Extracting Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar () to C:\Users\User\Desktop\SCP WAR\Temp\ryodpko9.a52\androidx.arch.core.core-runtime-2.0.0
Processing Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar
ProcessAar Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar
Extracting Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar () to C:\Users\User\Desktop\SCP WAR\Temp\dznals4v.5zh\androidx.asynclayoutinflater.asynclayoutinflater-1.0.0
Processing Assets/Plugins/Android/androidx.browser.browser-1.4.0.aar
ProcessAar Assets/Plugins/Android/androidx.browser.browser-1.4.0.aar
Extracting Assets/Plugins/Android/androidx.browser.browser-1.4.0.aar () to C:\Users\User\Desktop\SCP WAR\Temp\6wcyofye.qo7\androidx.browser.browser-1.4.0
Processing Assets/Plugins/Android/androidx.collection.collection-1.1.0.jar
ProcessAar Assets/Plugins/Android/androidx.collection.collection-1.1.0.jar
Processing Assets/Plugins/Android/androidx.concurrent.concurrent-futures-1.1.0.jar
ProcessAar Assets/Plugins/Android/androidx.concurrent.concurrent-futures-1.1.0.jar
Processing Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar
ProcessAar Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar
Extracting Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar () to C:\Users\User\Desktop\SCP WAR\Temp\uffvb7wi.fio\androidx.coordinatorlayout.coordinatorlayout-1.0.0
Processing Assets/Plugins/Android/androidx.core.core-1.2.0.aar
ProcessAar Assets/Plugins/Android/androidx.core.core-1.2.0.aar
Extracting Assets/Plugins/Android/androidx.core.core-1.2.0.aar () to C:\Users\User\Desktop\SCP WAR\Temp\medaep19.s6t\androidx.core.core-1.2.0
Processing Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar
ProcessAar Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar
... 이하 생략
- 2번째 시도
play-games-plugin-for-unity-0.11.01 버전 교체 → play-games-plugin-for-unity-10.14 임포트
(기존 유니티 프로젝트 창에 있던 GooglePlayGames 폴더와 GooglePlayGamesPlugin 폴더 삭제 후 임포트)
임포트 끝나고 나니 켜놓았던 아래와 같이 Google Version Handler 창이 떠있음
(아마 구글 플레이 플러그인 충돌이였나 봄?)
10.14버전 설치하니까 유니티 프로젝트 창에 GooglePlayGames만 보이고 GooglePlayGamesPlugin 폴더는 보이지 않음
다시 Force Resolve 시도하니까 드디어 성공
Android Force Resolve 정상
abb 파일로 빌드업 정상
'▶ SCP전쟁 개발일지' 카테고리의 다른 글
#012 유니티 구글 플레이 로그인 구현 (GPGS 로그인, 업적, 리더보드, 이벤트) (0) | 2024.04.12 |
---|---|
#문제해결 유니티 Error SignInRequest Setting result error status code to: 16 (0) | 2024.04.12 |
#문제해결 유니티 ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. (0) | 2024.04.09 |
#011 파이어베이스 유니티 구현 (서버 연동, 이메일 계정 생성, 로그인, 로그아웃) (0) | 2024.04.09 |
#010 애니메이션 원하는 구간에 스크립트 코드 실행하기 (음악 재생, 비활성화 등) (0) | 2024.04.01 |
댓글