Could not resolve all files for configuration ':OverseaEngine:protobufToolsLocator_grpc'.
Could not find protoc-gen-grpc-java-1.4.0-osx-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.4.0).
Searched in the following locations:
https://nexus.txzing.com/repository/maven-public/io/grpc/protoc-gen-grpc-java/1.4.0/protoc-gen-grpc-java-1.4.0-osx-aarch_64.exe
Could not resolve all files for configuration ':TXZLongConnection:protobufToolsLocator_javalite'.
Could not find protoc-gen-javalite-3.0.0-osx-aarch_64.exe (com.google.protobuf:protoc-gen-javalite:3.0.0).
Searched in the following locations:
https://nexus.txzing.com/repository/maven-public/com/google/protobuf/protoc-gen-javalite/3.0.0/protoc-gen-javalite-3.0.0-osx-aarch_64.exe
意思大概是我的电脑需要使用aarch架构的文件,但是公司的Maven库里只有x86-74,所以是打不开的
这里需要强制设置下载的文件是x86架构,只需要在对应报错的类的依赖后面加上
protoc {
artifact = 'com.google.protobuf:protoc:3.14.0:osx-x86_64'
}
}
//另外还需要在gradle.properites里加上
protoc_platform=osx-x86_64
//编译后即可解决
但是还是没办法运行编译模块,发现里面已经没有依赖Javafx了,之前是有集成在JDK里的,但是后来从openJdk中分离开了,因为时间紧迫没有再去解决,后续再研究。





















