赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。