Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Kotlin設定でエラー → Error:Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7

More than 3 years have passed since last update.

Androidプロジェクトを新規作成し「Configure Kotlin in Project」でKotlin設定後ビルドをしたら下記エラーが出ました。

Kobito.8b60fw.png

これは単純に、kotlin-stdlib-jre7はバージョン1.1系以上のパッケージしか公開されていないためです。

https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jre7

ですので、バージョンを1.1以上のものにすれば直ります。

build.gradle
buildscript {
-     ext.kotlin_version = '1.0.7'
+     ext.kotlin_version = '1.1.1'

    ...

参考:http://stackoverflow.com/q/42843441

shoma2da
CEO兼エンジニアしてます
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away