在尝试为应用程序编写基本界面时遇到了.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
有人有任何建议吗?
答案 0 :(得分:2)
我建议避免在文件名中使用(空格)。请改用下划线(_)。并最后删除?
。这应该可以解决问题
例如
Do You Hear What I Hear?
将此更改为do_you_hear_what_i_hear