当前位置: 首页 > news >正文

android studio 程序包r不存在,Android Studio问题!无法解析符号R,找不到与...

我在使用Android Studio时遇到了大问题.我最近与我的朋友一起开发了一个项目,当我打开它时,项目中的所有R都变成RED(“无法解析符号R”).

我搜索了此问题的答案,并尝试了几乎所有方法… Sync Gradle,Grade Clean等…哦,当我使用Build时>清理项目,它返回118错误.这是(几乎完整的)控制台输出:

Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.

Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0

:app:preBuild

:app:compileDebugNdk

:app:preDebugBuild

:app:checkDebugManifest

:app:preReleaseBuild

:app:prepareComAndroidSupportAppcompatV72100Library UP-TO-DATE

:app:prepareComAndroidSupportSupportV42100Library UP-TO-DATE

:app:prepareDebugDependencies

:app:compileDebugAidl UP-TO-DATE

:app:compileDebugRenderscript UP-TO-DATE

:app:generateDebugBuildConfig UP-TO-DATE

:app:generateDebugAssets UP-TO-DATE

:app:mergeDebugAssets UP-TO-DATE

:app:generateDebugResValues UP-TO-DATE

:app:generateDebugResources UP-TO-DATE

:app:mergeDebugResources UP-TO-DATE

:app:processDebugManifest UP-TO-DATE

:app:processDebugResources

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:11: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:13: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:15: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:21: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:23: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:27: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:35: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:39: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:43: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:45: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:47: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:51: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:55: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:59: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:61: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:63: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:67: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:71: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:73: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:77: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v11\values.xml:39: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v14\values.xml:12: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v11\values.xml:46: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v14\values.xml:20: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v11\values.xml:53: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v14\values.xml:28: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v11\values.xml:60: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v14\values.xml:36: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:87: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:89: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:93: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:100: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:108: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:267: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:269: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:271: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:273: error: Error retrieving parent for item: No resource found that matches the given

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:259: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.

C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug\values-v21\values.xml:260: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.

FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:processDebugResources'.

> com.android.ide.common.internal.LoggedErrorException: Failed to run command:

C:\Users\Juliano\Downloads\Compressed\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x86_64-20140321\sdk\build-tools\20.0.0\aapt.exe package -f --no-crunch -I C:\Users\Juliano\Downloads\Compressed\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x86_64-20140321\sdk\platforms\android-14\android.jar -M C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\manifests\debug\AndroidManifest.xml -S C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\res\debug -A C:\Users\Juliano\Documents\Projects\HueLoc\app\build\intermediates\assets\debug -m -J C:\Users\Juliano\Documents\Projects\HueLoc\app\build\generated\source\r\debug -F

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 9.873 secs

是的,就是这样..请有人帮助我! (我使用的是W7,Android Studio最新版本)

//更新:

我通过删除’value21’文件夹中的value.xml文件修复了它…显然Android Studio进行了更新,这迫使我使用Android L …我将appcompat库的版本更改为19(使用的是21,所以我在项目的build.grade中进行了降级(依赖)…

相关文章:

  • 麒麟810鸿蒙内核移植,2K魅眼屏+鸿蒙OS系统+麒麟810 华为出大招了
  • C51编程语言的特点 与C的异同点,编程语言异同点归纳之一:注释方法 | 求索阁...
  • 华为鸿蒙系统启示,华为的机遇——鸿蒙系统启示录
  • signature=9721a1ecae6007cb6671337ee094b6b3,Nature Rev Immunol. The dark side of C5a in sepsis
  • html区域滚动原理,实例帮助你了解HTML5滑动区域选择元素Slider element
  • html的语义化怎么理解,关于语义化的HTML结构怎么理解
  • html转换成纯文本,你如何将Html转换为纯文本?
  • html的confirm弹窗样式修改,H5-Mui框架——修改mui.confirm样式
  • html三行三列模式布局,一个CSS上中下三行三列结构的Div布局
  • 2021遂宁高考成绩多久查询,2021年遂宁如何查询中考成绩
  • ncp计算机网络,计算机网络(待完成)
  • 计算机专业的口号运动会四字,运动会口号四字
  • 给div赋html,jquery怎么给div赋值
  • koa渲染html文件,Koa 中返回 html 文件引发的思考-一一网络
  • 第一章计算机系统基础知识答案解析,计算机基础知识第一章练习题及答案解析教案资料(20200719174546)(20页)-原创力文档...
  • .pyc 想到的一些问题
  • 【剑指offer】让抽象问题具体化
  • 0基础学习移动端适配
  • golang 发送GET和POST示例
  • JavaScript 奇技淫巧
  • MaxCompute访问TableStore(OTS) 数据
  • oschina
  • PAT A1050
  • 百度地图API标注+时间轴组件
  • 得到一个数组中任意X个元素的所有组合 即C(n,m)
  • 浅谈Golang中select的用法
  • 微服务核心架构梳理
  • 微信公众号开发小记——5.python微信红包
  • 为物联网而生:高性能时间序列数据库HiTSDB商业化首发!
  • ​Distil-Whisper:比Whisper快6倍,体积小50%的语音识别模型
  • ​草莓熊python turtle绘图代码(玫瑰花版)附源代码
  • ​创新驱动,边缘计算领袖:亚马逊云科技海外服务器服务再进化
  • #define、const、typedef的差别
  • #我与Java虚拟机的故事#连载02:“小蓝”陪伴的日日夜夜
  • (12)目标检测_SSD基于pytorch搭建代码
  • (1综述)从零开始的嵌入式图像图像处理(PI+QT+OpenCV)实战演练
  • (C++20) consteval立即函数
  • (PyTorch)TCN和RNN/LSTM/GRU结合实现时间序列预测
  • (SpringBoot)第七章:SpringBoot日志文件
  • (附源码)小程序儿童艺术培训机构教育管理小程序 毕业设计 201740
  • (免费领源码)Java#ssm#MySQL 创意商城03663-计算机毕业设计项目选题推荐
  • (十二)devops持续集成开发——jenkins的全局工具配置之sonar qube环境安装及配置
  • (新)网络工程师考点串讲与真题详解
  • (一)使用IDEA创建Maven项目和Maven使用入门(配图详解)
  • (转)EXC_BREAKPOINT僵尸错误
  • .gitignore文件_Git:.gitignore
  • .Net Attribute详解(上)-Attribute本质以及一个简单示例
  • .NET BackgroundWorker
  • .NET CORE 第一节 创建基本的 asp.net core
  • .NET Core 将实体类转换为 SQL(ORM 映射)
  • .net web项目 调用webService
  • .pyc文件是什么?
  • 。Net下Windows服务程序开发疑惑
  • /proc/interrupts 和 /proc/stat 查看中断的情况
  • [《百万宝贝》观后]To be or not to be?