質問編集履歴

2

エラーメッセージの修正

2016/06/29 04:59

投稿

ytzuka
ytzuka

スコア14

test CHANGED
File without changes
test CHANGED
@@ -14,11 +14,7 @@
14
14
 
15
15
  ```
16
16
 
17
- Error:(9) Error parsing XML: not well-formed (invalid token)
18
-
19
- Error:Execution failed for task ':app:processDebugResources'.
20
-
21
- > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\haru1\AppData\Local\Android\Sdk\build-tools\24.0.0\aapt.exe'' finished with non-zero exit value 1
17
+ Error:(16, 31) No resource found that matches the given name (at 'text' with value '@string/click').
22
18
 
23
19
  ```
24
20
 

1

エラーメッセージ、ソースコードを修正しました。

2016/06/29 04:59

投稿

ytzuka
ytzuka

スコア14

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,11 @@
14
14
 
15
15
  ```
16
16
 
17
- ClassCastException: com.intellij.psi.impl.source.xml.XmlProcessingInstructionImpl cannot be cast to com.intellij.psi.xml.XmlAttribute
17
+ Error:(9) Error parsing XML: not well-formed (invalid token)
18
+
19
+ Error:Execution failed for task ':app:processDebugResources'.
20
+
21
+ > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\haru1\AppData\Local\Android\Sdk\build-tools\24.0.0\aapt.exe'' finished with non-zero exit value 1
18
22
 
19
23
  ```
20
24
 
@@ -40,33 +44,31 @@
40
44
 
41
45
  android:id="@+id/scroll"
42
46
 
43
- xmlns:android="http://schemas.android.com/apk/res/android" />
47
+ <LinearLayout
44
48
 
45
- <LinearLayout
49
+ android:layout_width="match_parent"
46
50
 
47
- android:layout_width="match_parent"
51
+ android:layout_height="match_parent"
48
52
 
49
- android:layout_height="match_parent"
53
+ android:orientation="vertical"
50
54
 
51
- android:orientation="vertical"
55
+ <Button
52
56
 
53
- <Button
57
+ android:layout_width="match_parent"
54
58
 
55
- android:layout_width="match_parent"
59
+ android:layout_height="match_parent"
56
60
 
57
- android:layout_height="match_parent"
61
+ android:text="@string/click"
58
62
 
59
- android:text="@string/click"
63
+ android:id="@+id/button"/>
60
64
 
61
- android:id="@+id/button"/>
65
+ </LinearLayout>
66
+
67
+ </ScrollView>
68
+
69
+ </RelativeLayout>
62
70
 
63
71
 
64
-
65
- </ScrollView>
66
-
67
- </LinearLayout>
68
-
69
- </RelativeLayout
70
72
 
71
73
 
72
74