LMEH262 2019-02-02 23:56 采纳率: 75%
浏览 6020
已结题

Android Studio中Invalid escape sequence at line 1 column 37 path $[0].name的问题

第一次编译成功显示,但是之后编译却报错,报了这个Invalid escape sequence at line 1 column 37 path $[0].name
XML布局文档

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <!--普通文字效果-->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:gravity="center"
            android:text="跑马灯效果,点击暂停,再点击恢复"/>

        <!--跑马灯效果-->
        <TextView
            android:id="@+id/pmd"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:singleLine="true"
            android:ellipsize="marquee"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:textColor="#000000"
            android:textSize="17sp"
            android:text="2018年08月28日04时17分将暴雨蓝色预警信号升级为暴雨红色预警信号。目前五莲县的槎河已经出现超过100毫米的降水,预计今天到29日,日照市仍有雷阵雨天气,雨量分布极为不均,五莲县东北部其他地区过程降水量仍有可能会超过100毫米。请注意防范。 "/>

    </LinearLayout>

</android.support.constraint.ConstraintLayout>

java文档

package com.example.android.helloworld;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

  • 写回答

4条回答 默认 最新

  • 无山居 2019-02-22 16:03
    关注

    没错就是升级到3.3冒出来的鸟问题.什么都不用删,直接
    Build-Clean Project
    搞定.

    评论

报告相同问题?

悬赏问题

  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用
  • ¥15 kafka topic 所有分副本数修改
  • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
  • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?
  • ¥40 串口调试助手打开串口后,keil5的代码就停止了