Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7

后端 未结 15 1141
闹比i
闹比i 2020-11-30 06:17

I installed the Kotlin plugin into my app (v. v1.1.1-release-Studio2.2-1) and then selected "Configure Kotlin in Project" I selected compiler and runtime version

15条回答
  •  悲&欢浪女
    2020-11-30 06:43

    1. Please check current version of your Kotlin in below path,

      C:\Program Files\Android\Android Studio\gradle\m2repository\org\jetbrains\kotlin\kotlin-stdlib\1.0.5

    change to that version (1.0.5) in project level gradle file.

    You can see in your above path does not mentioned any Java - jre version, so remove in your app level gradle file as below,

    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    

提交回复
热议问题