質問編集履歴

2

project直下のbuild.gradleを追記しました

2019/01/30 20:49

投稿

yasushi_cohi
yasushi_cohi

スコア16

test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,12 @@
50
50
 
51
51
  with linked exception:
52
52
 
53
+ [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1バイトのUTF-8シーケンスのバイト1が無効です。]
54
+
55
+ ・・・
56
+
57
+ Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1バイトのUTF-8シーケンスのバイト1が無効です。
58
+
53
59
 
54
60
 
55
61
  ---
@@ -58,7 +64,7 @@
58
64
 
59
65
 
60
66
 
61
- ```build.gradle
67
+ ```buildgradle
62
68
 
63
69
  apply plugin: 'com.android.application'
64
70
 
@@ -273,3 +279,59 @@
273
279
 
274
280
 
275
281
  ```
282
+
283
+ ```buildgradle
284
+
285
+ buildscript {
286
+
287
+ ext.kotlin_version = '1.2.30'
288
+
289
+ repositories {
290
+
291
+ google()
292
+
293
+ jcenter()
294
+
295
+ }
296
+
297
+ dependencies {
298
+
299
+ classpath 'com.android.tools.build:gradle:3.1.0'
300
+
301
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
302
+
303
+
304
+
305
+ // NOTE: Do not place your application dependencies here; they belong
306
+
307
+ // in the individual module build.gradle files
308
+
309
+ }
310
+
311
+ }
312
+
313
+
314
+
315
+ allprojects {
316
+
317
+ repositories {
318
+
319
+ google()
320
+
321
+ jcenter()
322
+
323
+ }
324
+
325
+ }
326
+
327
+
328
+
329
+ task clean(type: Delete) {
330
+
331
+ delete rootProject.buildDir
332
+
333
+ }
334
+
335
+
336
+
337
+ ```

1

2019/01/30 20:49

投稿

yasushi_cohi
yasushi_cohi

スコア16

test CHANGED
@@ -1 +1 @@
1
- kotlinでbuildが出来ない
1
+ kotlinの環境構築でbuildが出来ない
test CHANGED
File without changes