質問編集履歴
1
エラーメッセージと回答を受けての修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,13 +22,77 @@
|
|
22
22
|
|
23
23
|
AAPT errors:
|
24
24
|
|
25
|
-
app/scr/main/AndroidManifest.xml
|
25
|
+
app/scr/main/AndroidManifest.xml(2 errors)
|
26
|
-
|
26
|
+
|
27
|
-
Android resource linling
|
27
|
+
Android resource linling failed
|
28
|
-
|
28
|
+
|
29
|
-
Android resource linling
|
29
|
+
Android resource linling failed
|
30
|
-
|
30
|
+
|
31
|
-
```
|
31
|
+
```
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
以下の箇所が黄色くなり、
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
<application
|
40
|
+
|
41
|
+
android:allowBackup="true"
|
42
|
+
|
43
|
+
android:icon="@mipmap/ic_launcher"
|
44
|
+
|
45
|
+
android:label="@string/app_name"
|
46
|
+
|
47
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
48
|
+
|
49
|
+
android:supportsRtl="true"
|
50
|
+
|
51
|
+
android:theme="@style/AppTheme" >
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<activity android:name=".MainActivity" >
|
56
|
+
|
57
|
+
<intent-filter>
|
58
|
+
|
59
|
+
<action android:name="android.intent.action.MAIN" />
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
64
|
+
|
65
|
+
</intent-filter>
|
66
|
+
|
67
|
+
</activity>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<activity
|
72
|
+
|
73
|
+
android:name=".SubActivity"
|
74
|
+
|
75
|
+
android:label="@string/app_name" >
|
76
|
+
|
77
|
+
</activity>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</application>
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
Adding at least one Activity with an ACTION-VIEW intent-filter
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
とのコメントが吹き出しに表示されました。
|
32
96
|
|
33
97
|
|
34
98
|
|
@@ -42,7 +106,7 @@
|
|
42
106
|
|
43
107
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
44
108
|
|
45
|
-
package="com.example.
|
109
|
+
package="com.example.diceroller" >
|
46
110
|
|
47
111
|
|
48
112
|
|
@@ -60,6 +124,8 @@
|
|
60
124
|
|
61
125
|
android:theme="@style/AppTheme" >
|
62
126
|
|
127
|
+
|
128
|
+
|
63
129
|
<activity android:name=".MainActivity" >
|
64
130
|
|
65
131
|
<intent-filter>
|
@@ -76,7 +142,7 @@
|
|
76
142
|
|
77
143
|
|
78
144
|
|
79
|
-
<activity
|
145
|
+
<activity
|
80
146
|
|
81
147
|
android:name=".SubActivity"
|
82
148
|
|
@@ -84,6 +150,8 @@
|
|
84
150
|
|
85
151
|
</activity>
|
86
152
|
|
153
|
+
|
154
|
+
|
87
155
|
</application>
|
88
156
|
|
89
157
|
|
@@ -108,6 +176,44 @@
|
|
108
176
|
|
109
177
|
|
110
178
|
|
179
|
+
### ご回答を受けての修正
|
180
|
+
|
181
|
+
strings.xml
|
182
|
+
|
183
|
+
```xml
|
184
|
+
|
185
|
+
<resources>
|
186
|
+
|
187
|
+
<string name="button">YourAppName</string>
|
188
|
+
|
189
|
+
<string name="main">Main Activity</string>
|
190
|
+
|
191
|
+
<string name="sub">Sub Activity</string>
|
192
|
+
|
193
|
+
<string name="hint1">Message to Sub</string>
|
194
|
+
|
195
|
+
<string name="hint2">Message to Main</string>
|
196
|
+
|
197
|
+
<string name="to_main">" to Main"</string>
|
198
|
+
|
199
|
+
<string name="from_main">"from Main"</string>
|
200
|
+
|
201
|
+
<string name="to_sub">" to Sub"</string>
|
202
|
+
|
203
|
+
<string name="from_sub">"from Sub"</string>
|
204
|
+
|
205
|
+
<string name="move">move</string>
|
206
|
+
|
207
|
+
<string name="back">back</string>
|
208
|
+
|
209
|
+
<string name="app_namex">Screen Transit</string>
|
210
|
+
|
211
|
+
</resources>
|
212
|
+
|
213
|
+
```
|
214
|
+
|
215
|
+
|
216
|
+
|
111
217
|
### 補足情報(FW/ツールのバージョンなど)
|
112
218
|
|
113
219
|
Android Studio 3.5.3
|