首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误:AAPT:错误:资源样式/Theme.AppCompat.light.

错误:AAPT:错误:资源样式/Theme.AppCompat.light.
EN

Stack Overflow用户
提问于 2022-06-27 10:43:27
回答 1查看 1.2K关注 0票数 0

我在我的项目构建中遇到了一个问题。

我用的是技术颤振。我在Windows 11上使用。

错误是:

代码语言:javascript
运行
复制
* 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.

我已经清除了我的梯度缓存,使用了flutter clean,文件>无效缓存>清除文件系统缓存和本地历史>无效和重新启动。

请帮我修一下这个错误好吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-27 13:21:20

在Android Studio中:

搜索栏中的

  1. CTRL+SHIFT+F
  2. Enter:AppCompat
  3. Change Theme.AppCompat.light.NoActionBarTheme.AppCompat.Light.NoActionBar
  4. Verify您在flutter/android/app/build.gradleflutter/android/build.gradle中的版本,它应该工作。
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72770793

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档