![]() ![]() The state of a Gradle build process (daemon) may be corrupt. ![]() Re-download dependencies and sync project (requires network) SourceCompatibility = JavaVersion.Class .dsl.KotlinMultiplatformExtension_Decorated cannot be cast to class .dsl.KotlinProjectExtension (.dsl.KotlinMultiplatformExtension_Decorated is in unnamed module of loader .VisitableURLClassLoader .dsl.KotlinProjectExtension is in unnamed module of loader .VisitableURLClassLoader .dsl.KotlinMultiplatformExtension_Decorated cannot be cast to class .dsl.KotlinProjectExtension (.dsl.KotlinMultiplatformExtension_Decorated is in unnamed module of loader .VisitableURLClassLoader .dsl.KotlinProjectExtension is in unnamed module of loader .VisitableURLClassLoader dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) "build/generated/source/proto/main/grpckt" "build/generated/source/proto/main/java", "build/generated/source/proto/main/grpc", RuntimeOnly("io.grpc:grpc-netty-shaded:$grpcVersion")Īrtifact = ":protoc:$protobufVersion"Īrtifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"Īrtifact = "io.grpc:protoc-gen-grpc-kotlin:$grpcKotlinVersion" Implementation(":kotlinx-coroutines-core:$coroutinesVersion") Implementation("io.grpc:grpc-kotlin-stub:$grpcKotlinVersion") Implementation("io.grpc:grpc-stub:$grpcVersion") Implementation("io.grpc:grpc-protobuf:$grpcVersion") Implementation(":protobuf-java-util:$protobufVersion") Implementation("javax.annotation:javax.annotation-api:1.2") Gradle configurations val grpcVersion = "1.30.0" Open-source build automation tool based on the Groovy and Kotlin DSL And I can successfully generate grpc java code in Intellij, which does not seem to be a problem with Intellij I don’t know what happened, the weird thing is that it is ok to run in the terminal。It seems that the two of them are incompatible. –grpckt_out: protoc-gen-grpckt: Plugin failed with status code 1. ![]() stderr: Error: Invalid or corrupt jarfile /usr/local/bin/gradle Task ‘:generateProto’ is not up-to-date because: the error message as below:Ĭaching disabled for task ‘:generateProto’ because: Hey guys, I am trying to use gralde generateProtol to generate grpc kotlin code in intellij and it has been unsuccessful. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |