gpt4 book ai didi

android - list 合并因多个错误而失败,请参阅日志(PayUMoney 集成)

转载 作者:行者123 更新时间:2023-11-29 19:06:17 27 4
gpt4 key购买 nike

我正在尝试将 PayUMoney 支付网关集成到我的应用程序中。集成文档的第一行说要添加 -

编译 'com.payumoney.sdkui:plug-n-play:1.0.0'

在我的应用级 build.gradle 文件依赖项中。但是一旦我这样做,我就会遇到错误 -

Manifest merge failed with multiple errors, see logs also the line -

实现 'com.android.support:appcompat-v7:26.1.0'

显示以下错误-

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 26.1.0, 23.2.1. Examples include com.android.support:animated-vector-drawable:26.1.0 and com.android.support:cardview-v7:23.2.1 less... (Ctrl+F1) 
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)

帮我解决这个问题。

下面是我的 build.gradle(Module:app) 代码 -

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
defaultConfig {
applicationId "com.learnturtle.payucheck"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

compile 'com.payumoney.sdkui:plug-n-play:1.0.0'
}

最佳答案

使用最新的依赖

compile 'com.payumoney.sdkui:plug-n-play:1.5.0'

并更改 minSdkversion

minSdkVersion 20

关于android - list 合并因多个错误而失败,请参阅日志(PayUMoney 集成),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47110848/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com