安卓源码libvulkan“ depends on undefined module “libgpud_sys“报错解决

目录


一、报错点

当修改部分系统api时,会提示更新

c 复制代码
frameworks/base/api/system-current.txt

或者

c 复制代码
frameworks/base/api/current.txt 

而安卓源码一般会有如下提示

c 复制代码
******************************
You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.

2) You can update current.txt by executing the following command:
make system-api-stubs-docs-update-current-api

To submit the revised current.txt to the main Android repository,
you will need approval.
******************************

一般来说我们使用选项2即可解决问题,更新api。

而这也是本文所遇到的问题,当使用

c 复制代码
make system-api-stubs-docs-update-current-api

时报如下错误:

c 复制代码
frameworks/native/vulkan/libvulkan/Android.bp:31:1: "libvulkan" depends on undefined module "libgpud_sys"

二、解决办法

中间使用了各种方法没有解决,这里直接给出解决方案,非常简单。

首先使用

c 复制代码
make clean

清除掉out目录下编译产出的所有文件

然后整编即可,整编过程会更新current.txt 文件,但如果后续有改动,就会发生如上报错,重复上述步骤即可。

So easy !!!

相关推荐
imDwAaY18 分钟前
操作系统如何管理程序运行?从线程、进程到内存隔离与用户态切换:CS162 Note2
android·java·redis
andyweike1 小时前
Android文件系统
android
studyForMokey1 小时前
【Android 面试】Paging3
android·面试·职场和发展
企业数字化笔记1 小时前
租户停用后数据和任务怎么处理?冻结、恢复与保留策略的实现
android·java·spring boot
小程故事多_8012 小时前
从 Tokenizer 到 Next Token,穿透数据流,完整理解 Transformer 底层逻辑
android·深度学习·transformer
三少爷的鞋15 小时前
Android 协程实践:为什么不应将 `supervisorScope` 作为常规方案
android
承渊政道16 小时前
【从零开始大模型开发与微调:基于PyTorch与ChatGLM】(从ChatGLM本地化到LoRA、PEFT的高级微调)
android·人工智能·pytorch·chatglm·本地化部署·大模型开发与微调
2601_9628857218 小时前
如何用 Python 判断一只股票“追涨”还是“抄底”更有效?
android·开发语言·python
素师良码18 小时前
第10篇:屏ESD Check内核逻辑驱动代码完整拆解
android
高晶18 小时前
Android 短信收发模块从零到实战:权限配置、界面设计、发送接收与兼容性适配全攻略
android·程序员