본문 바로가기

Android

Could not determine the dependencies of task In project 'app' a resolved Google Play services library dependency depends on another at an exact version

간만에 라이브러리 버전을 변경하곤 맞이 하는 오류 메시지 =_ = 
한번에 되는게 없군 하곤 뒤적 뒤적 오류 메시지를 확인하는데 
 
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugAidl'.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.2.0
  -alpha02]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
  
  Dependency failing: androidx.fragment:fragment-testing:1.2.0-alpha02 -> androidx.fragment:fragment-ktx@[1.2.0-alpha02],
  but fragment-ktx version was 1.2.0-alpha03.
  
  The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
  ifact with the issue.
  -- Project 'app' depends onto androidx.fragment:fragment-ktx@{strictly 1.2.0-alpha03}
  -- Project 'app' depends onto androidx.navigation:navigation-fragment-ktx@{strictly 2.2.0-alpha02}
  -- Project 'app' depends onto androidx.fragment:fragment-testing@1.2.0-alpha02
  -- Project 'app' depends onto androidx.navigation:navigation-fragment-ktx@2.2.0-alpha02
  -- Project 'app' depends onto androidx.fragment:fragment-testing@{strictly 1.2.0-alpha02}
  
  For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
  endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
  github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
  uild.gradle file.
 
 
구글 서비스쪽이랑 내가 선택한 라이브러리의 버전이 충돌이 나는 듯 싶은데 어떻게 해결해야 하나 하고 뒤적거리던 차에 오류 문구중에 발견한 한줄 되시겠다.
 
adding "googleServices { disableVersionCheck = false }" to your build.gradle file.
 
그러곤 잠시 고민끝에 
 
app level build.gradle 가장 하단에 코드를 아래와 같이 넣었다. 
 
apply plugin: 'com.google.gms.google-services'
 
googleServices { disableVersionCheck = true }
 

끝.