【问题标题】:Android Studio Error :114:25: AAPT: error: resource android:attr/lStar not foundAndroid Studio 错误:114:25:AAPT:错误:找不到资源 android:attr/lStar
【发布时间】:2022-07-02 23:31:23
【问题描述】:

Here is the error that I am facing while using chaquopy with android studio

每当我尝试构建 apk 时,它都会打开 values.xml 并指向一行

错误在第 105 行:

<declare-styleable name="ColorStateListItem">
    <!-- Base color for this state. -->
    <attr name="android:color"/>
    <!-- Alpha multiplier applied to the base color. -->
    <attr format="float" name="alpha"/>
    <attr name="android:alpha"/>
    <!-- Perceptual luminance applied to the base color. From 0 to 100. -->
    <attr format="float" name="lStar"/>
    <attr name="android:lStar"/>
</declare-styleable>

由于字数限制,我无法发布完整的 values.xml 文件。如果您需要完整的文件,请评论。

请帮帮我。

【问题讨论】:

  • 我认为该消息表明错误位于第 105 行和第 114 行之间。您可以编辑您的问题以包含这 10 行吗?
  • 好的,谢谢您的回复,我添加了这 10 行。你可以检查一下,请给我任何解决方案
  • 我在尝试设置sdkversion:31 之前遇到过这个问题。原因是依赖版本(android.test.ext?我不记得了)。我建议您尝试在 build.gradle 中更改依赖项的版本。

标签: android android-studio android-resources chaquopy


【解决方案1】:

卸载旧版本的 android studio

从 android studio 网站安装最新版本

https://developer.android.com/studio

它对我有用:-)

【讨论】:

    猜你喜欢
    • 2022-01-06
    • 2022-01-11
    • 2023-01-27
    • 2019-01-29
    • 2019-12-26
    • 2019-05-01
    • 2021-12-11
    • 2019-07-14
    相关资源
    最近更新 更多