英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论