android - 如何从 Android.mk 构建错误中获取 LOCAL_STATIC_ANDROID_LIBRARIES 名称?
问题描述
我在mm
使用 AOSP 和 Android.mk 运行构建时收到此构建错误
error: resource style/Theme.MaterialComponents.DayNight.DarkActionBar (aka missing.manifest:style/Theme.MaterialComponents.DayNight.DarkActionBar) not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:5: error: style attribute 'attr/colorPrimary (aka missing.manifest:attr/colorPrimary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:6: error: style attribute 'attr/colorPrimaryVariant (aka missing.manifest:attr/colorPrimaryVariant)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:7: error: style attribute 'attr/colorOnPrimary (aka missing.manifest:attr/colorOnPrimary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:9: error: style attribute 'attr/colorSecondary (aka missing.manifest:attr/colorSecondary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:10: error: style attribute 'attr/colorSecondaryVariant (aka missing.manifest:attr/colorSecondaryVariant)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:11: error: style attribute 'attr/colorOnSecondary (aka missing.manifest:attr/colorOnSecondary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values/themes.xml:13: error: resource attr/colorPrimaryVariant (aka missing.manifest:attr/colorPrimaryVariant) not found.
error: resource style/Theme.MaterialComponents.DayNight.DarkActionBar (aka missing.manifest:style/Theme.MaterialComponents.DayNight.DarkActionBar) not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:5: error: style attribute 'attr/colorPrimary (aka missing.manifest:attr/colorPrimary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:6: error: style attribute 'attr/colorPrimaryVariant (aka missing.manifest:attr/colorPrimaryVariant)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:7: error: style attribute 'attr/colorOnPrimary (aka missing.manifest:attr/colorOnPrimary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:9: error: style attribute 'attr/colorSecondary (aka missing.manifest:attr/colorSecondary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:10: error: style attribute 'attr/colorSecondaryVariant (aka missing.manifest:attr/colorSecondaryVariant)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:11: error: style attribute 'attr/colorOnSecondary (aka missing.manifest:attr/colorOnSecondary)' not found.
vendor/qcom/opensource/iot-media/mediadecode/app/src/main/res/values-night/themes.xml:13: error: resource attr/colorPrimaryVariant (aka missing.manifest:attr/colorPrimaryVariant) not found.
error: failed linking references.
14:15:24 ninja failed with: exit status 1
#### failed to build some targets (02:52 (mm:ss)) ####
我尝试了很多但没有找到要添加的库(以及确切的名称)
LOCAL_STATIC_ANDROID_LIBRARIES := \
androidx.appcompat_appcompat \
androidx-constraintlayout_constraintlayout \
androidx-navigation_navigation-ui \
androidx-navigation_navigation-fragment \
...
肯定看起来不一样
implementation 'com.google.android.material:material:<version>'
在 Gradle 中使用。
如何修复此构建错误?
解决方案
推荐阅读
- python - 将 Graph 转换为 SavedModel 后的 Tensorflow FailedPreconditionError
- spring - 在命令式弹簧应用程序中处理弹簧反应器异常
- cakephp - Router::extensions(['json']) 对 ErrorController 没有影响
- java - 堆中的内存可见性
- z3 - 如何在python中使用z3求解器获得中值约束
- tensorflow - colab_utils.annotate(),注解格式
- c# - 在 webview 中打开 pdf 需要超过 5 次点击或没有加载
- firebase - 更新 Firestore 中的所有文档
- python - Python中许多图像的快速而强大的图像拼接算法?
- google-cloud-dns - 无法打开 Google Cloud DNS 页面