1
kotlinのバージョンを1.0.5-2から1.1.0に変更した後、クラッシュしました:Kotlinクラッシュ提供されている表記を型のオブジェクトに変換できません依存関係:org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension_Decorated
Error:(114, 0) Cannot convert the provided notation to an object of type Dependency: o[email protected]5a39a165.
The following types/formats are supported:
- Instances of Dependency.
- String or CharSequence values, for example 'org.gradle:gradle-core:1.0'.
- Maps, for example [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
- FileCollections, for example files('some.jar', 'someOther.jar').
- Projects, for example project(':some:project:path').
- ClassPathNotation, for example gradleApi().
Comprehensive documentation on dependency notations is available in DSL reference for DependencyHandler type.
プロジェクトは同期されていないため、gradleの依存関係などを呼び出すことはできません。同期は、アプリのbuild.gradleにクラッシュし
メインbuild.gradle
ext {
kotlin_version = '1.1.0'
//(...)
kotlin = "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
dependencies {
compile kotlin
//...
}