解决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这个只是我的额外问题

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

相关推荐
码农coding3 分钟前
android 12 中的VSYNC接收
android
GitLqr14 分钟前
Flutter 3.44 性能飞跃:深度解析 Android Platform View 的 HCPP 新特性
android·flutter·性能优化
码农coding18 分钟前
android 12 SurfaceFlinger中的CompositionEngine
android
2601_9605679637 分钟前
电商套图批处理架构的性能分析——逐图生成与流水线模式的工程对比
架构
老刘说AI1 小时前
SGLang 深度优化: Radix 缓存与复杂任务的极致吞吐
人工智能·神经网络·机器学习·缓存·架构·sglang
Mem0rin2 小时前
[MySQL] 聚合函数、分组查询、连接查询
android·mysql
Georgeviewer2 小时前
实体门店SaaS系统适配困境深度解析:通用模板架构为何无法支撑线下商业落地
架构
●VON2 小时前
鸿蒙 PC Markdown 编辑器通信架构:受限 ArkTS-JavaScript Bridge
华为·架构·编辑器·harmonyos·鸿蒙
chaoxiaomai2 小时前
电商套图批处理架构的性能分析——逐图生成与流水线模式的工程对比
架构
码龙-DragonCoding2 小时前
一键批量提取音频、提取视频
android·音视频·提取