<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="40dp"
android:height="40dp"
android:drawable="@drawable/near_btn_cafe"/>
</layer-list>
맡아야할 파트를 분배 받고, 팀장님이 팀프로젝트 레포지토리를 만들어주셔서 안드로이드스튜디오에 클론해왔다. 그리고.. 클론해오자마자! 버전이 안맞아서 문제가 발생했다.ㅎ 팀장님은 IntelliJ를 쓰시고, 나는 안드로이드스튜디오를 사용하는거에서도 차이가 있었다.
1.1 Invalid Gradle JDK configuration found. This project uses the #GRADLE_LOCAL_JAVA_HOME macro to specify the JDK path. This macro was introduced in Android Studio Hedgehog and is not supported by this version of Android Studio. We recommend upgrading to the latest version of Android Studio. Alternatively, you can choose a different JDK version for this project. 오류
=> #GRADLE_LOCAL_JAVA_HOME의 경우, 안드로이드 스튜디오에서는 Hedgehog부터 지원하는 것으로, JDK 경로를 지정하는 새 매크로라고 한다. 어쨌든 내 안드로이드스튜디오(Giraffe)에서는 맞지 않으므로, 오류를 구글링 하여 (윈도우기준)File> Settings> Build, Execution, Deployment> Build Tools> Gradle에 들어가 Gradle JDK를 맞춰주었다.
1.2 이렇게 JDK를 맞춰주었더니, The project is using an incompatible version (AGP 8.2.0) of the Android Gradle plugin. Latest supported version is AGP 8.1.3 오류가 나타났다.
=> 이거야 말로 이제 진짜 안드로이드스튜디오 버전의 문제인 것이라, Android 스튜디오 버전과 필요한 AGP 버전의 호완성을 참고했다. 맨 처음 팀장님이 주신 프로젝트build.gradle.kts에서는 id("com.android.application") version "8.2.0"로 되어있어서 맞출 수 있도록 안드로이드스튜디오를 업데이트 하는 방법을 찾았는데, 일단 지금으로선 사용 중인 버전 이상의 안드로이드스튜디오를 구할 방법이 없었다. 상의 끝에 8.1.0 으로 고쳐서 사용하기로 합의를 보았다. 직접 build.gradle.kts에서 8.1.0으로 고쳤더니 재빌드 후 접근이 가능해졌다. 처음해보는거라 이렇게 맞춰도 되는지 불안한 마음이 어느정도 있긴 하지만.. 일단 된다는 것에 초점을 맞추고.. 모두와 상의한 부분..이니까 자신감을 가지고 본격적으로 브랜치 생성 후 코드를 작성해보아야겠다.