質問編集履歴
1
不要な文言を削除、編集したファイルのコードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,24 +4,10 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
ここに質問の内容を詳しく書いてください。
|
8
|
-
|
9
|
-
(例)PHP(CakePHP)で●●なシステムを作っています。
|
10
|
-
|
11
|
-
■■な機能を実装中に以下のエラーメッセージが発生しました。
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
### 発生している問題・エラーメッセージ
|
16
|
-
|
17
|
-
|
18
|
-
|
19
7
|
```
|
20
8
|
|
21
9
|
エラーメッセージ
|
22
10
|
|
23
|
-
```
|
24
|
-
|
25
11
|
Launching lib/main.dart on iPhone 11 in debug mode...
|
26
12
|
|
27
13
|
Running Xcode build...
|
@@ -34,15 +20,213 @@
|
|
34
20
|
|
35
21
|
Syncing files to device iPhone 11...
|
36
22
|
|
37
|
-
|
23
|
+
```
|
24
|
+
|
25
|
+
|
26
|
+
|
38
|
-
|
27
|
+
【android/build.gradle】
|
28
|
+
|
29
|
+
```buildscript {
|
30
|
+
|
31
|
+
repositories {
|
32
|
+
|
33
|
+
google()
|
34
|
+
|
35
|
+
jcenter()
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
dependencies {
|
42
|
+
|
43
|
+
classpath 'com.android.tools.build:gradle:3.5.0'
|
44
|
+
|
45
|
+
classpath 'com.google.gms:google-services:4.3.3'
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
|
39
|
-
|
53
|
+
allprojects {
|
54
|
+
|
40
|
-
|
55
|
+
repositories {
|
56
|
+
|
41
|
-
|
57
|
+
google()
|
58
|
+
|
42
|
-
|
59
|
+
jcenter()
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
rootProject.buildDir = '../build'
|
68
|
+
|
69
|
+
subprojects {
|
70
|
+
|
71
|
+
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
subprojects {
|
76
|
+
|
77
|
+
project.evaluationDependsOn(':app')
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
task clean(type: Delete) {
|
84
|
+
|
85
|
+
delete rootProject.buildDir
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
【app/build.gradle】
|
94
|
+
|
43
|
-
```ここに言語
|
95
|
+
```ここに言語を入力
|
96
|
+
|
44
|
-
|
97
|
+
def localProperties = new Properties()
|
98
|
+
|
99
|
+
def localPropertiesFile = rootProject.file('local.properties')
|
100
|
+
|
101
|
+
if (localPropertiesFile.exists()) {
|
102
|
+
|
103
|
+
localPropertiesFile.withReader('UTF-8') { reader ->
|
104
|
+
|
105
|
+
localProperties.load(reader)
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
114
|
+
|
115
|
+
if (flutterRoot == null) {
|
116
|
+
|
117
|
+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
124
|
+
|
125
|
+
if (flutterVersionCode == null) {
|
126
|
+
|
127
|
+
flutterVersionCode = '1'
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
134
|
+
|
135
|
+
if (flutterVersionName == null) {
|
136
|
+
|
137
|
+
flutterVersionName = '1.0'
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
apply plugin: 'com.android.application'
|
144
|
+
|
145
|
+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
146
|
+
|
147
|
+
|
148
|
+
|
45
|
-
|
149
|
+
android {
|
150
|
+
|
151
|
+
compileSdkVersion 28
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
lintOptions {
|
156
|
+
|
157
|
+
disable 'InvalidPackage'
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
defaultConfig {
|
164
|
+
|
165
|
+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
166
|
+
|
167
|
+
applicationId "com.${Username}.test_fb"
|
168
|
+
|
169
|
+
minSdkVersion 16
|
170
|
+
|
171
|
+
targetSdkVersion 28
|
172
|
+
|
173
|
+
versionCode flutterVersionCode.toInteger()
|
174
|
+
|
175
|
+
versionName flutterVersionName
|
176
|
+
|
177
|
+
multiDexEnabled true
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
buildTypes {
|
184
|
+
|
185
|
+
release {
|
186
|
+
|
187
|
+
// TODO: Add your own signing config for the release build.
|
188
|
+
|
189
|
+
// Signing with the debug keys for now, so `flutter run --release` works.
|
190
|
+
|
191
|
+
signingConfig signingConfigs.debug
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
flutter {
|
202
|
+
|
203
|
+
source '../..'
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
dependencies {
|
210
|
+
|
211
|
+
// ...
|
212
|
+
|
213
|
+
implementation 'com.google.firebase:firebase-core:17.0.0'
|
214
|
+
|
215
|
+
implementation 'androidx.multidex:multidex:2.0.0'
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
// Getting a "Could not find" error? Make sure that you've added
|
220
|
+
|
221
|
+
// Google's Maven repository to your root-level build.gradle file
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
apply plugin: 'com.google.gms.google-services'
|
228
|
+
|
229
|
+
|
46
230
|
|
47
231
|
```
|
48
232
|
|
@@ -60,12 +244,24 @@
|
|
60
244
|
|
61
245
|
|
62
246
|
|
247
|
+
iOSの方は
|
248
|
+
|
249
|
+
ios/Runner.xcodeprojを展開後、
|
250
|
+
|
251
|
+
GoogleService-Info.plistをRunner/Runnner配下に置きましたがエラーがでます。
|
252
|
+
|
63
|
-
|
253
|
+
ご回答にて下記のQiitaの記事のとおりにやっておりましたが、上記のエラーが出る次第です。
|
254
|
+
|
255
|
+
https://qiita.com/emono/items/036568ddb5712b039855
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
Androidの方は、
|
260
|
+
|
261
|
+
gradleファイルを上記コードの通りFirebaseの指示の通りに編集しました。
|
262
|
+
|
263
|
+
|
64
264
|
|
65
265
|
|
66
266
|
|
67
267
|
### 補足情報(FW/ツールのバージョンなど)
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
ここにより詳細な情報を記載してください。
|