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

相关推荐
百锦再3 小时前
第11章 泛型、trait与生命周期
android·网络·人工智能·python·golang·rust·go
会跑的兔子4 小时前
Android 16 Kotlin协程 第二部分
android·windows·kotlin
键来大师4 小时前
Android15 RK3588 修改默认不锁屏不休眠
android·java·framework·rk3588
江上清风山间明月7 小时前
Android 系统超级实用的分析调试命令
android·内存·调试·dumpsys
百锦再7 小时前
第12章 测试编写
android·java·开发语言·python·rust·go·erlang
用户693717500138411 小时前
Kotlin 协程基础入门系列:从概念到实战
android·后端·kotlin
SHEN_ZIYUAN11 小时前
Android 主线程性能优化实战:从 90% 降至 13%
android·cpu优化
曹绍华11 小时前
android 线程loop
android·java·开发语言
雨白11 小时前
Hilt 入门指南:从 DI 原理到核心用法
android·android jetpack
介一安全12 小时前
【Frida Android】实战篇3:基于 OkHttp 库的 Hook 抓包
android·okhttp·网络安全·frida