teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

gradleを追加

2017/07/24 07:35

投稿

navesanta
navesanta

スコア198

title CHANGED
File without changes
body CHANGED
@@ -69,16 +69,7 @@
69
69
 
70
70
  Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar);
71
71
  Button searchButton = (Button) findViewById(R.id.searchButton);
72
- Button xButton = (Button)findViewById(R.id.xButton);
72
+ ・・・・
73
- Button aButton = (Button)findViewById(R.id.aButton);
74
- Button kaButton = (Button)findViewById(R.id.kaButton);
75
- Button saButton = (Button)findViewById(R.id.saButton);
76
- Button taButton = (Button)findViewById(R.id.taButton);
77
- Button naButton = (Button)findViewById(R.id.naButton);
78
- Button haButton = (Button)findViewById(R.id.haButton);
79
- Button maButton = (Button)findViewById(R.id.maButton);
80
- Button yaButton = (Button)findViewById(R.id.yaButton);
81
- Button raButton = (Button)findViewById(R.id.raButton);
82
73
  Button waButton = (Button)findViewById(R.id.waButton);
83
74
  Button abcButton = (Button)findViewById(R.id.abcButton);
84
75
  Button symbolButton = (Button)findViewById(R.id.symbolButton);
@@ -110,16 +101,7 @@
110
101
  });
111
102
 
112
103
  searchButton.setOnClickListener(this);
113
- aButton.setOnClickListener(this);
104
+ ・・・・
114
- kaButton.setOnClickListener(this);
115
- saButton.setOnClickListener(this);
116
- taButton.setOnClickListener(this);
117
- naButton.setOnClickListener(this);
118
- haButton.setOnClickListener(this);
119
- maButton.setOnClickListener(this);
120
- yaButton.setOnClickListener(this);
121
- raButton.setOnClickListener(this);
122
- waButton.setOnClickListener(this);
123
105
  abcButton.setOnClickListener(this);
124
106
  symbolButton.setOnClickListener(this);
125
107
 
@@ -217,4 +199,22 @@
217
199
  }
218
200
  }
219
201
 
202
+ ```
203
+ build.gradle
204
+ ```ここに言語を入力
205
+ dependencies {
206
+ compile 'com.github.bumptech.glide:glide:3.6.1'
207
+ compile 'com.android.support:support-v4:25.+'
208
+ compile fileTree(dir: 'libs', include: ['*.jar'])
209
+ compile 'com.google.firebase:firebase-ads:10.0.1'
210
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
211
+ exclude group: 'com.android.support', module: 'support-annotations'
212
+ })
213
+ compile 'com.android.support:appcompat-v7:25.3.1'
214
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
215
+ compile 'com.android.support:recyclerview-v7:25.3.1'
216
+ compile 'com.android.support:cardview-v7:25.3.1'
217
+ testCompile 'junit:junit:4.12'
218
+ }
219
+ apply plugin: 'com.google.gms.google-services'
220
220
  ```

1

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

2017/07/24 07:35

投稿

navesanta
navesanta

スコア198

title CHANGED
File without changes
body CHANGED
@@ -10,6 +10,18 @@
10
10
 
11
11
  クラッシュレポート
12
12
  ```
13
+ java.lang.RuntimeException:
14
+ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
15
+ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2405)
16
+ at android.app.ActivityThread.access$800(ActivityThread.java:154)
17
+ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306)
18
+ at android.os.Handler.dispatchMessage(Handler.java:102)
19
+ at android.os.Looper.loop(Looper.java:135)
20
+ at android.app.ActivityThread.main(ActivityThread.java:5290)
21
+ at java.lang.reflect.Method.invoke(Native Method:0)
22
+ at java.lang.reflect.Method.invoke(Method.java:372)
23
+ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
24
+ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
13
25
  Caused by: java.lang.NullPointerException:
14
26
  at com.mobreve.wordapp.MainActivity.onCreate(Unknown Source:0)
15
27
  at android.app.Activity.performCreate(Activity.java:6032)