1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

KotlinでDataBindingを使う時の設定

1
Last updated at Posted at 2018-09-06

kotlinを使用したプロジェクトを新規に作成する時によく忘れるのでメモです。

メモ時の開発環境
MacBook Pro 2017
macOS High Sierra 10.13.6
Android Studio 3.1.3

appディレクトリ直下のbuild.gradleに以下の2つを追加します。

apply plugin: 'kotlin-kapt' ←この1行をよく忘れる

Kotlinを使用しなければ上記は必要ありません。

dataBinding {
    enabled = true
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?