CymChad / CymChad/BaseRecyclerViewAdapterHelper
Plugin version (1.4.10) is not the same as library version (1.3.72)
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
升级 AndroidStudio 4.1,升级 kotlin plugin 1.4.10 后,引入 BaseRecyclerViewAdapterHelper 会有警告:
Plugin version (1.4.10) is not the same as library version (1.3.72)
project build.gradle:
buildscript {
ext.kotlin_version = "1.4.10"
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.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' }
}
}
app build.gradle:
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
defaultConfig { ... }
buildTypes { ... }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
// 这一行会有警告 Plugin version (1.4.10) is not the same as library version (1.3.72)
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides project and app build.gradle snippets; start by reproducing the Kotlin 1.4.10 and Android Gradle Plugin 4.1 setup with BaseRecyclerViewAdapterHelper 3.0.4. Trace the dependency versions that produce the warning, and consider the work done when the setup no longer reports a Kotlin plugin/library version mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100