【发布时间】:2020-10-13 04:47:56
【问题描述】:
我在构建面向 API 23 的应用程序时遇到以下错误
AAPT: error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
还有一个错误列表,例如:
/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3217: error: resource android:attr/textFontWeight not found.
该应用基于 API 级别 29 构建,但我需要它在 API 23 上精确运行,因此更改 API 版本不是一种选择。 有什么办法可以使用旧布局吗?该应用程序根本不需要漂亮,它只需要工作即可。
编辑:
我添加了以下行:
implementation 'com.google.android.material:material:1.2.1'
build.grade (:app) 希望图书馆能提供资源,但它没有工作
但我可能添加错了
【问题讨论】:
标签: android android-studio android-layout android-6.0-marshmallow