无法在intellij上启动android

Abd*_*him 9 android intellij-idea kotlin

我是android开发的新手。我正在尝试"hello world"按照google android基础课程学习一个适用于android应用的项目。

我相信我已经正确安装了android插件。我一直在

错误:无法解决:org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.21

我的世界应用程序中的代码是:

buildscript {
ext.kotlin_version = '1.3.21'
repositories {
    google()
    jcenter()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:3.1.0'
    //classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"
    classpath "org.jetbrains.kotlin:kotlin-stdlib:1.3.21"
    //classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
    google()
    jcenter()
    }
}

task clean(type: Delete) {
delete rootProject.buildDir
Run Code Online (Sandbox Code Playgroud)

cre*_*not 15

您需要替换jrejdk所建议EpicPandaForce

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Run Code Online (Sandbox Code Playgroud)


归档时间:

查看次数:

2718 次

最近记录:

6 年,5 月 前