解决MacM1芯片无法下载aarch架构grpc的方法

在用自己电脑编译运行公司项目的时候,发现里面编译后发现缺少了这些东西

  • What went wrong: Execution failed for task ':OverseaEngine:generateDebugProto'.

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


  • What went wrong: Execution failed for task ':TXZLongConnection:generateDebugProto'.

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中分离开了,因为时间紧迫没有再去解决,后续再研究。

不过一般到这里问题就解决了,JavaFx这个只是我的额外问题

封面源自影视飓风,希望自己也能无限进步

相关推荐
xierui1231235 分钟前
AI Agent 隐私架构:本地化重点为什么是登录态与执行权限
java·人工智能·网络安全·架构
Android-Flutter10 分钟前
android kotlin 状态机 Continuation 详解
android·kotlin
tang777891 小时前
Scrapy框架动态IP自动轮换集成配置教程
爬虫·tcp/ip·scrapy·架构·爬虫代理·动态ip
Logintern091 小时前
装饰器和洋葱模式的区分
开发语言·python·架构
qq_452396231 小时前
第二篇:《前端架构的“道”与“术”:架构设计原则与决策框架》
前端·架构
Zha0Zhun2 小时前
Jetpack Compose 实现 iOS 风格 3D WheelPicker
android
XUEYUAN52122 小时前
代理 IP 的三层架构:从网络层到应用层的技术拆解
网络·tcp/ip·架构
Python私教2 小时前
如意智影:如何让同一个人物在多个镜头里保持身份一致
人工智能·python·架构
两万五千个小时2 小时前
DeepSeek Harness 从 0 开始:10 Hooks 模块(钩子协议)
人工智能·程序员·架构
深念Y2 小时前
RIO-UL00(EMUI 4.1 / Android 6.0.1 / arm64)开机自启动 sshd
android·linux·华为·安卓·chroot·sshd·emui