Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask') 빌드 에러 해결방법
Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask').
- Type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.
Reason: Annotations on fields are only used if there's a corresponding getter for the field.
Possible solutions:
1. Add a getter for field 'intermediateDir'.
2. Remove the annotations on 'intermediateDir'.
위와 같은 에러가 발생했다.
방법은 간단하다.
프로젝트 수준의 build.gradle에 들어가서 google play service 버전을 4.3.8로 올려준다
buildscript {
ext.kotlin_version = '1.6.10'
ext.objectboxVersion = '2.1.0'
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.0.3'
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' //요기닷!
}
}
댓글 없음:
댓글 쓰기