【问题标题】:ERROR:AAPT: error: resource style/Theme.AppCompat.light.NoActionBar错误:AAPT:错误:资源样式/Theme.AppCompat.light.NoActionBar
【发布时间】:2022-10-18 22:22:18
【问题描述】:

我在项目构建中遇到问题。

我正在使用技术颤振。 我在 Windows 11 上使用 Android-Studio。

错误是:

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:AAPT: error: resource style/Theme.AppCompat.light.NoActionBar (aka com.example.nysos:style/Theme.AppCompat.light.NoActionBar) not found.
     error: failed linking references.

我已经清除了我的 gradle 缓存,使用了 flutter clean,File > Invalidate caches > Clear file system chache and Local History > Invalidate and restart。

你能帮我解决这个错误吗?

【问题讨论】:

    标签: flutter android-studio


    【解决方案1】:

    在 Android Studio 中:

    1. CTRL+SHIFT+F
    2. 在搜索栏中输入:AppCompat
    3. Theme.AppCompat.light.NoActionBar 更改为Theme.AppCompat.Light.NoActionBar
    4. flutter/android/app/build.gradleflutter/android/build.gradle 中验证您的版本,它应该可以工作。

    【讨论】:

      【解决方案2】:

      你找到解决方案了吗? 我有同样的但有错误

      【讨论】:

        猜你喜欢
        • 2019-06-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-02-21
        • 2020-06-21
        • 2019-01-29
        • 2019-12-26
        • 2014-04-24
        相关资源
        最近更新 更多