小白学习Android Studio第一个程序HelloWorld竟报Invalid escape sequence at line 1 column 29 path $[0].name

在安装了Android Studio3.3版本之后,第一个HelloWorld竟然都报错了(Invalid escape sequence at line 1 column 29 path $[0].name)总之很无奈,后来经过不懈探索终于发现了解决问题的方法,把build.gradle里面的参数3.3.1降为3.2.1即可完美运行。

发布了3 篇原创文章 · 获赞 6 · 访问量 8593
展开阅读全文

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

02-02

第一次编译成功显示,但是之后编译却报错,报了这个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); } } ``` 问答

WebStorm-2019.2.2.exe 安装完无法启动 报错

09-14

这个问题要怎么解决? 如图,报错代码如下: ![图片说明](https://img-ask.csdn.net/upload/201909/14/1568401718_589408.png) ``` Internal error. Please refer to http://jb.gg/ide/critical-startup-errors com.intellij.ide.plugins.MainRunner$StartupAbortedException: java.lang.reflect.InvocationTargetException at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:61) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:58) ... 1 more Caused by: java.lang.NullPointerException at com.rover12421.crack.jetbrains.ides.ٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴ.m(Unknown Source) at com.rover12421.crack.jetbrains.ides.Main.m(Unknown Source) at com.intellij.ide.a.s.ao(s.java:68) at com.intellij.ide.a.b.C.d(C.java:526) at com.intellij.ide.a.b.C.c(C.java:484) at com.intellij.ide.a.b.C.a(C.java:432) at com.intellij.ide.a.b.C.e(C.java:174) at com.intellij.ide.a.b.C.b(C.java:117) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.idea.MainImpl$1.start(MainImpl.java:89) at com.intellij.idea.StartupUtil.lambda$prepareAndStart$7(StartupUtil.java:237) at com.intellij.util.ui.EdtInvocationManager.executeWithCustomManager(EdtInvocationManager.java:49) at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:232) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.idea.MainImpl.start(MainImpl.java:42) ... 6 more ----- JRE 11.0.3+12-b304.56 amd64 by JetBrains s.r.o D:\ProgramPackage\JetBrains\WebStorm2019.2.2\jbr ``` 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览