質問編集履歴

1

コードの修正

2018/08/04 06:27

投稿

candy_
candy_

スコア11

test CHANGED
File without changes
test CHANGED
@@ -10,9 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- ```
14
-
15
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
13
+ ```// Top-level build file where you can add configuration options common to all sub-projects/modules.
16
14
 
17
15
 
18
16
 
@@ -30,9 +28,11 @@
30
28
 
31
29
  dependencies {
32
30
 
33
- classpath 'com.google.gms:google-services:4.0.0'
31
+ classpath 'com.android.tools.build:gradle:3.0.1'
34
32
 
35
-
33
+ compile 'com.google.firebase:firebase-core:16.0.0'
34
+
35
+
36
36
 
37
37
 
38
38
 
@@ -64,7 +64,11 @@
64
64
 
65
65
  delete rootProject.buildDir
66
66
 
67
+ apply plugin: 'com.google.gms.google-services'
68
+
67
69
  }
70
+
71
+
68
72
 
69
73
  ```
70
74
 
@@ -74,72 +78,8 @@
74
78
 
75
79
  ```ここに言語を入力
76
80
 
77
- Error:(1, 0) Plugin with id 'com.android.application' not found.
81
+ Error:(11, 0) Could not find method compile() for arguments [com.google.firebase:firebase-core:16.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
78
82
 
79
- <a href="openFile:C:\Users\shi\Desktop\HinannSupport System\20180804022\app\build.gradle">Open File</a>
83
+ <a href="openFile:C:\Users\shi\Desktop\HinannSupport System\20180804022\build.gradle">Open File</a>
80
84
 
81
85
  ```
82
-
83
- Open Fileをクリックすると表示される
84
-
85
- ---
86
-
87
- ```apply plugin: 'com.android.application'
88
-
89
-
90
-
91
- android {
92
-
93
- compileSdkVersion 26
94
-
95
- defaultConfig {
96
-
97
- applicationId "com.example.shi.a2018080402"
98
-
99
- minSdkVersion 16
100
-
101
- targetSdkVersion 26
102
-
103
- versionCode 1
104
-
105
- versionName "1.0"
106
-
107
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
108
-
109
- }
110
-
111
- buildTypes {
112
-
113
- release {
114
-
115
- minifyEnabled false
116
-
117
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
118
-
119
- }
120
-
121
- }
122
-
123
- }
124
-
125
-
126
-
127
- dependencies {
128
-
129
- implementation fileTree(dir: 'libs', include: ['*.jar'])
130
-
131
- implementation 'com.android.support:appcompat-v7:26.1.0'
132
-
133
- implementation 'com.google.android.gms:play-services-maps:15.0.1'
134
-
135
- testImplementation 'junit:junit:4.12'
136
-
137
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
138
-
139
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
140
-
141
- }
142
-
143
-
144
-
145
- ```