Android 清单合并失败,出现多个错误,请参阅日志(PayUMoney集成)

Android 清单合并失败,出现多个错误,请参阅日志(PayUMoney集成),android,gradle,build,payu,Android,Gradle,Build,Payu,我正在尝试将PayUMoney支付网关集成到我的应用程序中。集成文档的第一行说添加- 编译'com.payumoney.sdkui:plug-n-play:1.0.0' 在我的应用程序级别build.gradle文件依赖项中。但一旦我这样做,我就会遇到一个错误- 清单合并失败,出现多个错误,另请参阅日志行- 实现'com.android.support:appcompat-v7:26.1.0' 显示以下错误- All com.android.support libraries must use

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

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

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

清单合并失败,出现多个错误,另请参阅日志行-

实现
'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.)
帮我解决这个问题

下面是我的版本。gradle(模块: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'
}

检查gradle console在这种情况下,可能存在清单问题/支持库中已经存在的值,或者sdk版本兼容性问题,您将获得错误的全部详细信息。

使用最新的依赖项

compile 'com.payumoney.sdkui:plug-n-play:1.5.0'
compile 'com.payumoney.sdkui:plug-n-play:1.6.0'
并更改版本

minSdkVersion 20
minSdkVersion 20
使用以下sdk编译

同一应用程序中的标签gradle

打开清单并在应用程序标记内进行更改

tools:replace="android:allowBackup"


 <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning"
    tools:replace="android:allowBackup">
tools:replace=“android:allowBackup”
这对我很管用


使用最新的依赖项

compile 'com.payumoney.sdkui:plug-n-play:1.5.0'
compile 'com.payumoney.sdkui:plug-n-play:1.6.0'
并更改版本

minSdkVersion 20
minSdkVersion 20
在清单中加上这个

tools:replace="android:allowBackup,android:usesCleartextTraffic"

在我的应用程序中集成支付网关时,我也遇到了这个错误,结果发现网关需要在proguard文件中忽略一些类。所以你可以检查payu的文档,确认你没有遗漏什么。我觉得文档非常简短。。