无法使用kotlin库

我正在尝试将这个库用于我的应用程序,但是因为它是在kotlin中创建的,所以我正面临着这个问题。 我下载了这个库的模块,并在项目中导入这个模块,但在初始状态我没有findgettin kotlin插件,所以我改变了gradel 这个

apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { compileSdkVersion 26 buildToolsVersion "26.0.2" defaultConfig { minSdkVersion 17 targetSdkVersion 26 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main.java.srcDirs += 'src/main/kotlin' } resourcePrefix "yal_ms_" } buidscript { ext.kotlin_version = '1.0.1-2' repositories { jcenter() mavenCentral() } dependencies { classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.1-2' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile "com.android.support:appcompat-v7:26.1.0" compile "com.android.support:recyclerview-v7:26.1.0" compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } repositories { mavenCentral() jcenter() } 

我想第一次使用kotlin库,我不知道任何关于kotlin的东西,任何建议如何使用这个库将是有帮助的。

尝试通过gradle导入这个库

maven { url "https://jitpack.io" }到项目gradle的存储库中。 所以会是这样的

的build.gradle(项目)

 buildscript { ext.kotlin_version = '1.1.60' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' 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() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject.buildDir } 

并添加compile 'com.github.yalantis:multi-selection:v0.1'build.gradle(app)中的依赖关系

这可能会创建清单合并冲突错误,同时构建项目以删除添加工具:清单中标记下的替换=“android:label”