카테고리 없음

[Unity] unity WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34 오류

굴러다니다니 2024. 9. 7. 00:14
728x90

WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34 This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32 This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=34 to this project's gradle.properties 

 

CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2022.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

 

코드는 바뀐게 없는데 build가 gradle 때문에 안된다면 해야할 것

 

1. Unity Temp 폴더 삭제 (임시파일들 삭제)

2. Unity Library 폴더 삭제

3. Gradle Cache 삭제! (중요)

Windows: C:\Users\<Username>\.gradle\caches

 

728x90