質問編集履歴
1
gradle追記。
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,3 +33,133 @@
|
|
33
33
|
|
34
34
|
|
35
35
|
Android Studio 3.0.1
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
### 追記
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
build.gradle
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
buildscript {
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
repositories {
|
56
|
+
|
57
|
+
google()
|
58
|
+
|
59
|
+
jcenter()
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
dependencies {
|
64
|
+
|
65
|
+
classpath 'com.android.tools.build:gradle:3.0.1'
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
// NOTE: Do not place your application dependencies here; they belong
|
72
|
+
|
73
|
+
// in the individual module build.gradle files
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
allprojects {
|
82
|
+
|
83
|
+
repositories {
|
84
|
+
|
85
|
+
google()
|
86
|
+
|
87
|
+
jcenter()
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
task clean(type: Delete) {
|
96
|
+
|
97
|
+
delete rootProject.buildDir
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
app/build.gradle
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
apply plugin: 'com.android.application'
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
android {
|
114
|
+
|
115
|
+
compileSdkVersion 26
|
116
|
+
|
117
|
+
defaultConfig {
|
118
|
+
|
119
|
+
applicationId "com.test.grammartestapplication"
|
120
|
+
|
121
|
+
minSdkVersion 15
|
122
|
+
|
123
|
+
targetSdkVersion 26
|
124
|
+
|
125
|
+
versionCode 1
|
126
|
+
|
127
|
+
versionName "1.0"
|
128
|
+
|
129
|
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
buildTypes {
|
134
|
+
|
135
|
+
release {
|
136
|
+
|
137
|
+
minifyEnabled false
|
138
|
+
|
139
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
dependencies {
|
150
|
+
|
151
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
152
|
+
|
153
|
+
implementation 'com.android.support:appcompat-v7:26.1.0'
|
154
|
+
|
155
|
+
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
156
|
+
|
157
|
+
testImplementation 'junit:junit:4.12'
|
158
|
+
|
159
|
+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
160
|
+
|
161
|
+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
```
|