質問編集履歴

2

gradleを追加

2017/07/24 07:35

投稿

navesanta
navesanta

スコア198

test CHANGED
File without changes
test CHANGED
@@ -140,25 +140,7 @@
140
140
 
141
141
  Button searchButton = (Button) findViewById(R.id.searchButton);
142
142
 
143
- Button xButton = (Button)findViewById(R.id.xButton);
143
+ ・・・・
144
-
145
- Button aButton = (Button)findViewById(R.id.aButton);
146
-
147
- Button kaButton = (Button)findViewById(R.id.kaButton);
148
-
149
- Button saButton = (Button)findViewById(R.id.saButton);
150
-
151
- Button taButton = (Button)findViewById(R.id.taButton);
152
-
153
- Button naButton = (Button)findViewById(R.id.naButton);
154
-
155
- Button haButton = (Button)findViewById(R.id.haButton);
156
-
157
- Button maButton = (Button)findViewById(R.id.maButton);
158
-
159
- Button yaButton = (Button)findViewById(R.id.yaButton);
160
-
161
- Button raButton = (Button)findViewById(R.id.raButton);
162
144
 
163
145
  Button waButton = (Button)findViewById(R.id.waButton);
164
146
 
@@ -222,25 +204,7 @@
222
204
 
223
205
  searchButton.setOnClickListener(this);
224
206
 
225
- aButton.setOnClickListener(this);
207
+ ・・・・
226
-
227
- kaButton.setOnClickListener(this);
228
-
229
- saButton.setOnClickListener(this);
230
-
231
- taButton.setOnClickListener(this);
232
-
233
- naButton.setOnClickListener(this);
234
-
235
- haButton.setOnClickListener(this);
236
-
237
- maButton.setOnClickListener(this);
238
-
239
- yaButton.setOnClickListener(this);
240
-
241
- raButton.setOnClickListener(this);
242
-
243
- waButton.setOnClickListener(this);
244
208
 
245
209
  abcButton.setOnClickListener(this);
246
210
 
@@ -437,3 +401,39 @@
437
401
 
438
402
 
439
403
  ```
404
+
405
+ build.gradle
406
+
407
+ ```ここに言語を入力
408
+
409
+ dependencies {
410
+
411
+ compile 'com.github.bumptech.glide:glide:3.6.1'
412
+
413
+ compile 'com.android.support:support-v4:25.+'
414
+
415
+ compile fileTree(dir: 'libs', include: ['*.jar'])
416
+
417
+ compile 'com.google.firebase:firebase-ads:10.0.1'
418
+
419
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
420
+
421
+ exclude group: 'com.android.support', module: 'support-annotations'
422
+
423
+ })
424
+
425
+ compile 'com.android.support:appcompat-v7:25.3.1'
426
+
427
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
428
+
429
+ compile 'com.android.support:recyclerview-v7:25.3.1'
430
+
431
+ compile 'com.android.support:cardview-v7:25.3.1'
432
+
433
+ testCompile 'junit:junit:4.12'
434
+
435
+ }
436
+
437
+ apply plugin: 'com.google.gms.google-services'
438
+
439
+ ```

1

クラッシュレポートのコードを追加しました。

2017/07/24 07:35

投稿

navesanta
navesanta

スコア198

test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,30 @@
22
22
 
23
23
  ```
24
24
 
25
+ java.lang.RuntimeException:
26
+
27
+ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
28
+
29
+ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2405)
30
+
31
+ at android.app.ActivityThread.access$800(ActivityThread.java:154)
32
+
33
+ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306)
34
+
35
+ at android.os.Handler.dispatchMessage(Handler.java:102)
36
+
37
+ at android.os.Looper.loop(Looper.java:135)
38
+
39
+ at android.app.ActivityThread.main(ActivityThread.java:5290)
40
+
41
+ at java.lang.reflect.Method.invoke(Native Method:0)
42
+
43
+ at java.lang.reflect.Method.invoke(Method.java:372)
44
+
45
+ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
46
+
47
+ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
48
+
25
49
  Caused by: java.lang.NullPointerException:
26
50
 
27
51
  at com.mobreve.wordapp.MainActivity.onCreate(Unknown Source:0)