当前位置:   article > 正文

idea kotlin android,intellij idea - Kotlin android extensions, packages cannot be imported - Stack O...

packages cannot be imported

I installed the latest Kotlin android extensions plugin (version 1.0.0-beta-1103) and added the classpath to my Gradle dependencies. It compiles but I am still unable to import a package inside my android fragment.

Here is the relevant portion of the Gradle file:

buildscript {

ext.kotlin_version = '1.0.0-beta-1103'

repositories {

mavenCentral()

}

dependencies {

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

classpath "org.jetbrains.kotlin:kotlin-android-extensions:1.0.0-beta-1103"

}

}

Here is the import statement that is failing. My IDE states shows the error "Packages cannot be imported"

import kotlinx.android.synthetic.fragment_new_movie.view

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/277376
推荐阅读
相关标签
  

闽ICP备14008679号