티스토리 뷰
Unity Engine
[Unity] 빌드에러 해결) java.io.IOException: Can't read (생략) (Can't process class [android/car/Car$CarServiceLifecycleListener.class] (Unsupported version number [55.0] (maximum 54.0, Java 10)))
DevRororo 2023. 8. 30. 22:48반응형
에러사유 : 구글 애드몹 관련

해결방법
1.빌드 옵션에서 Custom Base Gradle Template를 활성화 한다

2. 해당 경로로 들어가 baseProjectTemplate.gradle를 실행시킨다.
3. 아래를 참고하여 빠진 부분을 추가한다. (절대 전체 복붙 금지! 개발환경에 따라 버전이 다를 수 있음)
의존성 부분에 'com.guardsquare:proguard-gradle:7.1.0' <- 이부분이 아마 없을것이다.
allprojects {
buildscript {
repositories {**ARTIFACTORYREPOSITORY**
google()
jcenter()
}
dependencies {
// If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
// See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
// See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
// To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.guardsquare:proguard-gradle:7.1.0'
**BUILD_SCRIPT_DEPS**
}
}
repositories {**ARTIFACTORYREPOSITORY**
google()
jcenter()
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
maven { url "https://maven.google.com/"}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
4. 수정후 다시 빌드
반응형
'Unity Engine' 카테고리의 다른 글
| [Unity] Resolving Android Dependencies가 안될 때 (0) | 2024.04.03 |
|---|---|
| [Unity] 빌드에러 해결) java.lang.unsupportedoperationexception this feature requires asm7 (0) | 2023.08.30 |
| [Unity] 빌드에러 해결, 설치) Android FCM(Firebase Cloud Message)(앱 푸시알림) 사용하기, 오류 해결방법 (0) | 2023.04.11 |
| [Unity] 중복로그인(접속) 방지하기 (0) | 2022.12.31 |
댓글
