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

标签 android gradle build payu

我正在尝试将 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/

相关文章:

android - 在 LDPI 设备上播放 ffmpeg 转换的视频 (Samsung S5300 240 x 320)

android - com.google.android.gms :play-services-measurement-base is being requested by various other libraries

java - 如何在构建之前删除 Hudson 工作区?

build - JENKINS 构建运行并行和顺序作业

Android:主页 Logo 不可点击?

android - 使用 Android 加速度传感器进行距离测量

java - 当我们从图库上传图像时应用程序崩溃了?

java - 将自定义 Maven 依赖项添加到 gradle 项目

android - 使用groovy解析android xml的命名空间错误

android - 错误 ':android:transformKotlinClassesWithJillForDebug' 。在构建用 Kotlin + LibGDX 编写的 Android 应用程序时