安卓源码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 小时前
自动化脚本开发:Python调用云手机API实现TikTok批量内容发布
android·网络安全·智能手机·架构·自动化
咕噜企业签名分发-淼淼3 小时前
iOS苹果和Android安卓测试APP应用程序的区别差异
android·ios·cocoa
IT从业者张某某4 小时前
信奥赛-刷题笔记-栈篇-T2-P1165日志分析0519
android·java·笔记
androidwork5 小时前
Kotlin与物联网(IoT):Android Things开发探索
android·物联网·kotlin
橙子199110165 小时前
在 Kotlin 中,什么是内联函数?有什么作用?
android·开发语言·kotlin
悠哉清闲6 小时前
Kotlin 协程 (一)
android·开发语言·kotlin
草明6 小时前
使用 adb 命令截取 Android 设备的屏幕截图
android·adb
.生产的驴7 小时前
SpringBoot 商城系统高并发引起的库存超卖库存问题 乐观锁 悲观锁 抢购 商品秒杀 高并发
android·java·数据库·spring boot·后端·spring·maven
xihaowen7 小时前
Android Edge-to-Edge
android·前端·edge
WenGyyyL8 小时前
《Android 应用开发基础教程》——第十三章:权限管理机制与运行时权限请求(以拍照/存储为例)
android·java·权限·极限编程