質問編集履歴
2
2つのbuiid.gradleのソースコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,7 +70,135 @@
|
|
70
70
|
|
71
71
|
```
|
72
72
|
|
73
|
-
|
73
|
+
```build.gradle
|
74
|
+
|
75
|
+
apply plugin: 'com.android.application'
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
apply plugin: 'kotlin-android'
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
apply plugin: 'kotlin-android-extensions'
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
android {
|
88
|
+
|
89
|
+
compileSdkVersion 27
|
90
|
+
|
91
|
+
defaultConfig {
|
92
|
+
|
93
|
+
applicationId "com.example.tsuna.myapplication"
|
94
|
+
|
95
|
+
minSdkVersion 15
|
96
|
+
|
97
|
+
targetSdkVersion 27
|
98
|
+
|
99
|
+
versionCode 1
|
100
|
+
|
101
|
+
versionName "1.0"
|
102
|
+
|
103
|
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
buildTypes {
|
108
|
+
|
109
|
+
release {
|
110
|
+
|
111
|
+
minifyEnabled false
|
112
|
+
|
113
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
dependencies {
|
124
|
+
|
125
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
126
|
+
|
127
|
+
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
|
128
|
+
|
129
|
+
implementation 'com.android.support:appcompat-v7:27.1.1'
|
130
|
+
|
131
|
+
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
132
|
+
|
133
|
+
testImplementation 'junit:junit:4.12'
|
134
|
+
|
135
|
+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
136
|
+
|
137
|
+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
```
|
142
|
+
|
143
|
+
```build.gradle
|
144
|
+
|
145
|
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
buildscript {
|
150
|
+
|
151
|
+
ext.kotlin_version = '1.2.41'
|
152
|
+
|
153
|
+
repositories {
|
154
|
+
|
155
|
+
google()
|
156
|
+
|
157
|
+
jcenter()
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
dependencies {
|
162
|
+
|
163
|
+
classpath 'com.android.tools.build:gradle:3.1.2'
|
164
|
+
|
165
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
// NOTE: Do not place your application dependencies here; they belong
|
170
|
+
|
171
|
+
// in the individual module build.gradle files
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
allprojects {
|
180
|
+
|
181
|
+
repositories {
|
182
|
+
|
183
|
+
google()
|
184
|
+
|
185
|
+
jcenter()
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
task clean(type: Delete) {
|
194
|
+
|
195
|
+
delete rootProject.buildDir
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
```
|
74
202
|
|
75
203
|
### 試したこと
|
76
204
|
|
1
タイトル前初心者マークつけました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
unresolved reference textと出てしまいます。
|
test
CHANGED
File without changes
|