ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14
我正在将一个项目导入 android 工作室。同步时出现此错误。我尽力解决这个问题,但我一直都失败了..
我真的没有收到这个错误。
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be
smaller than version 14 declared in library
[androidx.recyclerview:recyclerview:1.0.0-beta01]
C:\Users\abhishekdhyani.gradle\caches\transforms-2\files-2.1b4bcb484765b24d3e1d43d0fe4245f4\AndroidManifest.xml
as the library might be using APIs not available in 7 Suggestion: use
a compatible library with a minSdk of at most 7, or increase this
project's minSdk version to at least 14, or use
tools:overrideLibrary="androidx.recyclerview" to force usage (may lead
to runtime failures)
它显示我的 minsdkversion 是 7 而我的 build.gradle 是 18。不知道怎么解决。
defaultConfig {
applicationId "net.bingobey"
minSdkVersion 18
targetSdkVersion 28
versionCode 66
versionName "2.26"
multiDexEnabled true
renderscriptTargetApi 21
renderscriptSupportModeEnabled true
}
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be
smaller than version 14 declared in library
[androidx.recyclerview:recyclerview:1.0.0-beta01]
C:\Users\abhishekdhyani.gradle\caches\transforms-2\files-2.1b4bcb484765b24d3e1d43d0fe4245f4\AndroidManifest.xml
as the library might be using APIs not available in 7 Suggestion: use
a compatible library with a minSdk of at most 7, or increase this
project's minSdk version to at least 14, or use
tools:overrideLibrary="androidx.recyclerview" to force usage (may lead
to runtime failures)
有两个选项可以解决这个问题:
1.您需要在build.gradle(app)
或设置->Gradle中增加SDK-version
and/or
2. 将 build.gradle(app)
中的 RecyclerView
的实现更改为较低版本。您在这里使用的这个 (androidx.recyclerview:recyclerview:1.0.0-beta01
) 是最新版本。
你可能需要这个:com.android.support:recyclerview-v7
更多信息,我建议观看这个官方 Android 开发者迁移网站:
https://developer.android.com/jetpack/androidx/migrate
我正在将一个项目导入 android 工作室。同步时出现此错误。我尽力解决这个问题,但我一直都失败了.. 我真的没有收到这个错误。
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14 declared in library [androidx.recyclerview:recyclerview:1.0.0-beta01] C:\Users\abhishekdhyani.gradle\caches\transforms-2\files-2.1b4bcb484765b24d3e1d43d0fe4245f4\AndroidManifest.xml as the library might be using APIs not available in 7 Suggestion: use a compatible library with a minSdk of at most 7, or increase this project's minSdk version to at least 14, or use tools:overrideLibrary="androidx.recyclerview" to force usage (may lead to runtime failures)
它显示我的 minsdkversion 是 7 而我的 build.gradle 是 18。不知道怎么解决。
defaultConfig {
applicationId "net.bingobey"
minSdkVersion 18
targetSdkVersion 28
versionCode 66
versionName "2.26"
multiDexEnabled true
renderscriptTargetApi 21
renderscriptSupportModeEnabled true
}
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14 declared in library [androidx.recyclerview:recyclerview:1.0.0-beta01] C:\Users\abhishekdhyani.gradle\caches\transforms-2\files-2.1b4bcb484765b24d3e1d43d0fe4245f4\AndroidManifest.xml as the library might be using APIs not available in 7 Suggestion: use a compatible library with a minSdk of at most 7, or increase this project's minSdk version to at least 14, or use tools:overrideLibrary="androidx.recyclerview" to force usage (may lead to runtime failures)
有两个选项可以解决这个问题:
1.您需要在build.gradle(app)
或设置->Gradle中增加SDK-version
and/or
2. 将 build.gradle(app)
中的 RecyclerView
的实现更改为较低版本。您在这里使用的这个 (androidx.recyclerview:recyclerview:1.0.0-beta01
) 是最新版本。
你可能需要这个:com.android.support:recyclerview-v7
更多信息,我建议观看这个官方 Android 开发者迁移网站:
https://developer.android.com/jetpack/androidx/migrate