go-cmp undefined module errors while building aosp android t dp2 for maple (xperia xz premium)

huangapple go评论71阅读模式
英文:

go-cmp undefined module errors while building aosp android t dp2 for maple (xperia xz premium)

问题

我在尝试构建AOSP Android T DP2时遇到了"go-cmp未定义模块"的错误,有没有解决这个问题的线索?

错误:external/golang-protobuf/Android.gen.bp:1252:1: "golang-protobuf-reflect-protorange" 依赖于未定义的模块"go-cmp"
错误:external/golang-protobuf/Android.gen.bp:1252:1: "golang-protobuf-reflect-protorange" 依赖于未定义的模块"go-cmp-cmpopts"

无法构建某些目标 (2秒)

英文:

i'm having go-cmp undefined module error while trying to build aosp android t dp2, is there any clues on how to resolve this problem?

> error: external/golang-protobuf/Android.gen.bp:1252:1: "golang-protobuf-reflect-protorange" depends on undefined module "go-cmp" error: external/golang-protobuf/Android.gen.bp:1252:1: "golang-protobuf-reflect-protorange" depends on undefined module "go-cmp-cmpopts" #### failed to build some targets (2 seconds) ####

答案1

得分: 1

只需下载:https://android.googlesource.com/platform/external/go-cmp/+/refs/heads/master 并将其放在外部文件夹中,但我建议您等待官方发布,因为此错误是由缺少的内容引起的,而且可能不是您可能遇到的唯一错误。

英文:

Just download: https://android.googlesource.com/platform/external/go-cmp/+/refs/heads/master and put it on external folder, but i recommend you wait for the official release since this error is caused by missing stuff and it's not the only error that you might find.

huangapple
  • 本文由 发表于 2022年4月15日 14:02:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/71880625.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定