安卓源码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 !!!

相关推荐
hai_android几秒前
不用 AIDL,手把手教你手写 Binder 代理类
android·kotlin
mmsx1 小时前
osmdroid 地图实战 03|地图的"分层世界":离线方案、图层模型与 Overlay 体系
android·前端
张文是假的啊2 小时前
IOC依赖注入问题:@Primary 和 @Qualifier的使用
android
换元不配限2 小时前
ConstraintLayout核心用法详解(三):引导线、屏障、组和占位
android·placeholder·barrier·约束布局·guideline
心平气和量大福大4 小时前
android studio(AS)工具-调试-统计总行数
android·ide·android studio
你的坚定5 小时前
SurfaceFlinger合成一帧的完整流程
android
爱笑鱼7 小时前
Android 系统启动机制(七):进入 SystemServer.main() 以后,system_server 还是一个空进程吗?
android·linux
好安静7 小时前
SurfaceFlinger 合成一帧的完整流程
android
alexhilton7 小时前
架构测试为何需要双视图
android·kotlin·android jetpack
事圆则缓7 小时前
Jetpack Compose 快速上手
android·kotlin