e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors e: C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. e: C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. e: C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. e: C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-common-1.9.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (57, 42): Class 'kotlin.reflect.KClass' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/reflect/KClass.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (57, 42): Class 'kotlin.jvm.JvmClassMappingKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/jvm/JvmClassMappingKt.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (57, 59): Class 'kotlin.collections.CollectionsKt__CollectionsJVMKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/collections/CollectionsKt__CollectionsJVMKt.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (60, 72): Class 'kotlin.reflect.KClass' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/reflect/KClass.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (60, 72): Class 'kotlin.jvm.JvmClassMappingKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/jvm/JvmClassMappingKt.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (75, 38): Class 'kotlin.reflect.KClass' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/reflect/KClass.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (75, 38): Class 'kotlin.jvm.JvmClassMappingKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/jvm/JvmClassMappingKt.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (81, 76): Class 'kotlin.reflect.KClass' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/reflect/KClass.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (81, 76): Class 'kotlin.jvm.JvmClassMappingKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/jvm/JvmClassMappingKt.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (85, 42): Class 'kotlin.reflect.KClass' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/reflect/KClass.class e: F:\ICANFLY\React_Native\AwesomeProject\node_modules@react-native\gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (85, 42): Class 'kotlin.jvm.JvmClassMappingKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/khong/.gradle/wrapper/dists/gradle-8.4-all/56r6xik2f6skrm47et0ibifug/gradle-8.4/lib/kotlin-stdlib-1.9.10.jar!/kotlin/jvm/JvmClassMappingKt.class
失败:生成失败,出现异常。
- 错误:任务“:gradle-plugin:compileKotlin”执行失败。
执行org.jetbrains.Kotlin.compilerRunner. GradleKotlinerRunnerWithWorkers $GradleKotlinerWorkAction编译错误时出错。有关详细信息,请参阅日志
- 试试看:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整见解。在https://help.gradle.org获取更多帮助。
BUILD FAQUE in 9 s error无法安装应用程序。
上个月我使用的版本0.68.2运行时没有显示任何错误。现在我安装laster版本,不能在android上运行我的项目?
1条答案
按热度按时间lxkprmvk1#
删除Kotlin行或注解它们,这应该适用于版本0.72.6。
字符串