Gradle build error at Firebase connect

지프치프·2021년 9월 10일
0

Issue(error)

목록 보기
3/20

개요

Firebase을 사용하기 위해서 Sample Project를 만들고
Gradle을 수정한 뒤 Build를 하는 과정에서 Error가 뿜어져 나왔다.

org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression

Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

하얀 것은 종이요, 검은 것은 글씨로다
스튜디오에서는 검은 종이에 빨간 글씨다

Google에서 하라는 대로 했는데 에러를 뿜어내길래 당황스러웠지만
Google 개발자도 살린다는 Googling은 역시나 해답을 가지고 있었다.

해결


app 수준의 build.gradle에서 plugin을 추가할 때
위와 같이 그대로 써서 에러가 났었다.

apply plugin: 'com.google.gms.google-services'

이 문장을

id 'com.google.gms.google-services'

이렇게 바꿔줬더니 단박에 해결되었다.
기 정의된 plugin들은 id로 정의되는데
이 놈만 다르게 정의되는것을 의심했어야했는데
생각을 못했다 ..

개인적으로 공부했던 것을 바탕으로 작성하다보니
잘못된 정보가 있을수도 있습니다.
인지하게 되면 추후 수정하겠습니다.
피드백은 언제나 환영합니다.
읽어주셔서 감사합니다.

profile
지프처럼 거침없는 개발을 하고싶은 개발자

0개의 댓글