Unity/구글
Gradle build failed. See the console for details
아리에
2021. 4. 5. 20:50
빌드 시 Gradle build failed. See the console for details 에러
문제가 여러가지 있는데 아는 경우가 몇가지 있다.
1. CommandInvokationFailure: Gradle build failed.(확인)
-> 파일 경로상에 한글이 포함된 경우 빌드오류
2. 에러 메시지 중
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.
이 보이면
방법 1) gradleTemplate.gradle에 android.useAndroidX=true 추가
방법 2) mainTemplate.gradle에 추가 today7e.blogspot.com/2018/06/android.html
3. 그냥 안되는 경우도 있다.
- 유니티 종료
- C:\Users\사용자\.gradle\caches 안에 폴더 다 지우기
- C:\Users\nomea\AppData\LocalLow\해당패키지이름 폴더째로 삭제
- 재부팅