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

相关推荐
jyan_敬言3 小时前
【C++】string类(二)相关接口介绍及其使用
android·开发语言·c++·青少年编程·visual studio
程序员老刘4 小时前
Android 16开发者全解读
android·flutter·客户端
福柯柯5 小时前
Android ContentProvider的使用
android·contenprovider
不想迷路的小男孩5 小时前
Android Studio 中Palette跟Component Tree面板消失怎么恢复正常
android·ide·android studio
餐桌上的王子5 小时前
Android 构建可管理生命周期的应用(一)
android
菠萝加点糖5 小时前
Android Camera2 + OpenGL离屏渲染示例
android·opengl·camera
用户2018792831675 小时前
🌟 童话:四大Context徽章诞生记
android
yzpyzp5 小时前
Android studio在点击运行按钮时执行过程中输出的compileDebugKotlin 这个任务是由gradle执行的吗
android·gradle·android studio
aningxiaoxixi5 小时前
安卓之service
android
TeleostNaCl6 小时前
Android 应用开发 | 一种限制拷贝速率解决因 IO 过高导致系统卡顿的方法
android·经验分享