teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

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

2019/01/30 20:49

投稿

yasushi_cohi
yasushi_cohi

スコア16

title CHANGED
File without changes
body CHANGED
@@ -24,11 +24,14 @@
24
24
  e: [kapt] An exception occurred: android.databinding.tool.util.LoggedErrorException: failure, see logs for details.
25
25
  Exception while handling step android.databinding.annotationprocessor.ProcessExpressions@7c86326a javax.xml.bind.UnmarshalException
26
26
  with linked exception:
27
+ [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1バイトのUTF-8シーケンスのバイト1が無効です。]
28
+ ・・・
29
+ Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1バイトのUTF-8シーケンスのバイト1が無効です。
27
30
 
28
31
  ---
29
32
  以下build.gradleです。
30
33
 
31
- ```build.gradle
34
+ ```buildgradle
32
35
  apply plugin: 'com.android.application'
33
36
 
34
37
  apply plugin: 'kotlin-android'
@@ -135,4 +138,32 @@
135
138
  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
136
139
  }
137
140
 
141
+ ```
142
+ ```buildgradle
143
+ buildscript {
144
+ ext.kotlin_version = '1.2.30'
145
+ repositories {
146
+ google()
147
+ jcenter()
148
+ }
149
+ dependencies {
150
+ classpath 'com.android.tools.build:gradle:3.1.0'
151
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
152
+
153
+ // NOTE: Do not place your application dependencies here; they belong
154
+ // in the individual module build.gradle files
155
+ }
156
+ }
157
+
158
+ allprojects {
159
+ repositories {
160
+ google()
161
+ jcenter()
162
+ }
163
+ }
164
+
165
+ task clean(type: Delete) {
166
+ delete rootProject.buildDir
167
+ }
168
+
138
169
  ```

1

2019/01/30 20:49

投稿

yasushi_cohi
yasushi_cohi

スコア16

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