在尝试为应用程序编程基本界面时,我遇到了一个问题,其中.xml不允许我将预编程的小部件拖到手机设计中。我没有触摸初始代码,并且错误消息不断出现。我的文件命名方式似乎有误,但是我不确定要进行哪些更正。

错误消息:

11:23:59 AM FileNotFoundException: C:\Users\McKenzie\.AndroidStudio1.5\system\vcs-users\Do You Hear What I Hear?.8b4edad9.len (The filename, directory name, or volume label syntax is incorrect)
11:24:01 AM Gradle sync started
11:24:04 AM NullPointerException: null
11:24:26 AM Gradle sync completed
11:24:26 AM IOException: Problem trying to create temp directory with prefix: 'Do You Hear What I Hear?' suffix: 'aar_cache' path: 'C:\Users\McKenzie\AppData\Local\Temp': Unable to create temporary file C:\Users\McKenzie\AppData\Local\Temp\Do You Hear What I Hear?0aar_cache
11:24:27 AM Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources]
11:24:29 AM Gradle build finished in 3s 527ms


有人有什么建议吗?

最佳答案

我建议避免在文件名中使用(空格)。请使用下划线(_)。最后还要删除?。这应该可以解决问题。
例如
Do You Hear What I Hear?将此更改为do_you_hear_what_i_hear

关于java - Android Studios .xml编程错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36406983/

10-09 03:36