質問編集履歴
2
gradleの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,7 +54,11 @@
|
|
54
54
|
|
55
55
|
追記でアプリレベルのgradleファイルです。どうぞよろしくお願いします。
|
56
56
|
|
57
|
+
|
58
|
+
|
57
|
-
```
|
59
|
+
```
|
60
|
+
|
61
|
+
|
58
62
|
|
59
63
|
apply plugin: 'com.android.application'
|
60
64
|
|
@@ -132,7 +136,9 @@
|
|
132
136
|
|
133
137
|
apply plugin: 'com.google.gms.google-services'
|
134
138
|
|
139
|
+
|
140
|
+
|
135
|
-
``
|
141
|
+
```
|
136
142
|
|
137
143
|
|
138
144
|
|
@@ -140,6 +146,8 @@
|
|
140
146
|
|
141
147
|
//projectレベルのgradleファイルです。
|
142
148
|
|
149
|
+
```
|
150
|
+
|
143
151
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
144
152
|
|
145
153
|
|
@@ -213,3 +221,5 @@
|
|
213
221
|
delete rootProject.buildDir
|
214
222
|
|
215
223
|
}
|
224
|
+
|
225
|
+
```
|
1
gradleファイルの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -45,3 +45,171 @@
|
|
45
45
|
}
|
46
46
|
|
47
47
|
```
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
追記でアプリレベルのgradleファイルです。どうぞよろしくお願いします。
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
apply plugin: 'com.android.application'
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
android {
|
66
|
+
|
67
|
+
compileSdkVersion 26
|
68
|
+
|
69
|
+
defaultConfig {
|
70
|
+
|
71
|
+
applicationId "com.example.android.sample.ttttt"
|
72
|
+
|
73
|
+
minSdkVersion 23
|
74
|
+
|
75
|
+
targetSdkVersion 26
|
76
|
+
|
77
|
+
versionCode 1
|
78
|
+
|
79
|
+
versionName "1.0"
|
80
|
+
|
81
|
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
buildTypes {
|
86
|
+
|
87
|
+
release {
|
88
|
+
|
89
|
+
minifyEnabled false
|
90
|
+
|
91
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
dependencies {
|
102
|
+
|
103
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
104
|
+
|
105
|
+
implementation 'com.android.support:appcompat-v7:26.1.0'
|
106
|
+
|
107
|
+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
108
|
+
|
109
|
+
testImplementation 'junit:junit:4.12'
|
110
|
+
|
111
|
+
androidTestImplementation 'com.android.support.test:runner:1.0.1'
|
112
|
+
|
113
|
+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
compile 'com.google.firebase:firebase-core:11.6.2'
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
apply plugin: 'com.google.gms.google-services'
|
134
|
+
|
135
|
+
``
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
//projectレベルのgradleファイルです。
|
142
|
+
|
143
|
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
buildscript {
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
repositories {
|
152
|
+
|
153
|
+
google()
|
154
|
+
|
155
|
+
jcenter()
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
dependencies {
|
160
|
+
|
161
|
+
classpath 'com.android.tools.build:gradle:3.0.0'
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
classpath 'com.google.gms:google-services:3.1.1' // google-services plugin
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
// classpath 'com.google.gms:google-services:3.1.0'
|
176
|
+
|
177
|
+
// NOTE: Do not place your application dependencies here; they belong
|
178
|
+
|
179
|
+
// in the individual module build.gradle files
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
allprojects {
|
188
|
+
|
189
|
+
repositories {
|
190
|
+
|
191
|
+
google()
|
192
|
+
|
193
|
+
jcenter()
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
maven {
|
200
|
+
|
201
|
+
url "https://maven.google.com" // Google's Maven repository
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
task clean(type: Delete) {
|
212
|
+
|
213
|
+
delete rootProject.buildDir
|
214
|
+
|
215
|
+
}
|