LoginSignup
2
1

More than 5 years have passed since last update.

【memo】KotlinのDevをandroid studioで使う

Posted at

Dev環境使いたくて悩んだのでメモ

環境

Android Studio3.0
Tools -> Kotlin -> Configure Lotlin Plugin Updatesで
Update channelを Early Access Previewに変更(関係あるかは知らないけど)

修正ファイル

buildscriptとallprojectsのrepositoriesに
maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.2" }を追加
dependenciesのclasspathを使いたいバージョンにする(今回は 1.2.0-rc-39

build.gradle
buildscript {
    repositories {
        maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.2" }
    }

    dependencies {
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.0-rc-39'
    }

allprojects {
    repositories {
        maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.2" }
    }

app/build.gradleも使いたいバージョンにする(今回は 1.2.0-rc-39

app/build.gradle
dependencies {
        classpath 'org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.0-rc-39'
    }

最新版は下記(kotlin-stdlib-jre7)

2
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
2
1