[Debug]Android 编辑xml中Incorrect line ending错误解决方法
来源:互联网 发布:域名可以一年一年续费 编辑:程序博客网 时间:2024/06/06 04:19
原创文章,欢迎转载。转载请注明:转载自 祥的博客
原文链接:http://blog.csdn.net/humanking7/article/details/43418599
问题描述:
DescriptionResource LocationTypeDescriptionIncorrect line ending: found carriage return (\r) without corresponding newline (\n) main.xml /TestSyncListView/res/layoutline 21 Android Lint Problem
提示如下图所示:
解决办法:
方法一:(国外一网站帖子)
Using Eclipse on Windows
- Open layout file
- Ctrl+Shift+F (Command+Shift+F in MacOSX)
- Save the layout file and close it.
- Delete any .out files the builder might have created.
- Clean project.
方法二:
步骤如下(亲测有效,前提是代码没有问题)
- 点击工具栏project
- 点击下拉菜单的clean
分析:
个人认为是文字编码的问题,GBK和UTF-8的问题。我一般都是用UTF-8编辑的,因为这样兼容性更好一点。
0 0
- [Debug]Android 编辑xml中Incorrect line ending错误解决方法
- 【Android小问题】XML布局文件错误提示:incorrect line ending found carriage return without corresponding newline
- android:XML文件报错!Incorrect line ending: found carriage return (\r) without corresponding newline (\n)
- Android xml布局文件报错Incorrect line ending: found carriage return (\r) without corresponding newline (\n
- Incorrect line ending: found carriage return (\r) without corresponding newline (\n)的解决方法
- android布局之android:orientation=""Incorrect line ending: found carriage return (\r) without correspond
- Android的Incorrect line ending: found carriage return (\r) without corresponding new解决方案
- Android:报" Incorrect line ending: found carriage return (\r) without corresponding newline (\n) "解决
- Android--->Incorrect line ending: found carriage return (\r) without corresponding newline (\n)
- Android Q&A | Incorrect line ending: found carriage return (\r) without corresponding newline (\n)
- Incorrect line ending: found carriage return (\r) without
- incorrect line ending found carriage return without corresponding newline
- JAVA Eclipse Incorrect line ending found carriage return 怎么办
- line-ending
- Android初学错误-编辑布局xml文件中string声明
- Android.view.InflateException: Binary XML file line #7: Error inflating class button错误的解决方法
- Incorrect line ending: found carriage return (\r) without corresponding newline (\n)解决办法
- Mark一下 Incorrect line ending: found carriage return (\r) without corresponding newline (\n)
- 数据可视化:基本图表
- LeetCode 3Sum Closest
- day05-servlet
- 第一章 python中的变量
- 【难】【数学】斐波那契数列的O(logn)解法
- [Debug]Android 编辑xml中Incorrect line ending错误解决方法
- [LeetCode]Add Two Numbers
- HTTP协议详解
- 个人学习计划
- Java开源建站工具
- POJ 3006 Dirichlet's Theorem on Arithmetic Progressions(素数筛+等差数列)
- linux内核模块安装hello
- Linux core dump 分析及相关调试
- 服务器高级开发工程师