java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string 빌드 에러 해결방법
회사에서 옛날 프로젝트의 그래들을 업그레이드하다가 에러가 났다.
에러내용은 아래와 같다.
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string
buildscript {
ext.kotlin_version = '1.6.10'
ext.objectboxVersion = '2.5.1' //objectbox 버전
repositories {
// maven { url "http://1.201.142.80:8014/artifactory/list/ark/" }
google()
jcenter()
// maven { url "https://nexus.uzuki.live/repository/ark/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.objectbox:objectbox-gradle-plugin:$objectboxVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.3.8'
}
}
댓글 없음:
댓글 쓰기