清单合并失败:机器人工作室机器人、清单、工作室

2023-09-06 22:58:12 作者:姐对帅哥过敏

我不知道有什么问题。我一派,虽然它是关于匹配的SDK版本。它们是相同的,如下所示:

build.gradle

 安卓{
compileSdkVersion 17
buildToolsVersion19.0.1

defaultConfig {
    的minSdkVersion 4
    targetSdkVersion 17
}

buildTypes {
    推出 {
        runProguard假
        proguardFiles getDefaultProguardFile('ProGuard的-android.txt'),'ProGuard的-rules.txt
    }
}
}
依赖{
编制项目(:slidingMenu)
编制项目(:slidingMenu)
编译文件(库/ GoogleAdMobAdsSdk-6.4.1.jar)
编译文件(库/解析-1.4.0.jar)
}
 

清单文件:

 <舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
包=gurbani.ujagar
机器人:hardwareAccelerated =真
机器人:INSTALLLOCATION =preferExternal
安卓版code =26
机器人:VERSIONNAME =7.0>

<用途-SDK
    安卓的minSdkVersion =4
    机器人:targetSdkVersion =17/>
 

解决方案 人工智能会超过人类吗 雅安天立机器人工作室带你探索AI奥秘

您会结束了这个错误,如果你的库/模块采用不同的的minSdkVersion targetSdkVersion 您的项目中。

要找到,其中模块实际冲突的发生,你可以看到你的摇篮控制台输出。

最好的做法是,的minSdkVersion 8 至少是因为最喜欢的播放服务等使用此。

的库

请执行下列操作的变化和同步工程与摇篮

尝试使用 minsdkVesion 8 在所有的 build.gradle 文件以及 AndroidManifest.xml中文件答同步。

如果不解决通过您的摇篮控制台问题去并进行必要的更改按照错误显示。

注意:当编辑,你的minSdkVersion和targetSdkVersion在AndroidManifest.xml中会被你所提到的在你的build.gradle文件覆盖

I am not sure what's the issue. I googled and though it was about matching the sdk versions. They are the same as follows:

build.gradle

android {
compileSdkVersion 17
buildToolsVersion "19.0.1"

defaultConfig {
    minSdkVersion 4
    targetSdkVersion 17
}

buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}
dependencies {
compile project(':slidingMenu')
compile project(':slidingMenu')
compile files('libs/GoogleAdMobAdsSdk-6.4.1.jar')
compile files('libs/Parse-1.4.0.jar')
}

Manifest file:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gurbani.ujagar"
android:hardwareAccelerated="true"
android:installLocation="preferExternal"
android:versionCode="26"
android:versionName="7.0" >

<uses-sdk
    android:minSdkVersion="4"
    android:targetSdkVersion="17" />

解决方案

You will be ended up with this error, If your libraries/modules uses different minSdkVersion or targetSdkVersion inside your project.

To find , In which module actual conflicts are happening you can see your Gradle Console output.

Best practice is to have minSdkVersion 8 at least because most of the libraries like play services etc using this.

Please do the following change and sync Project with gradle

Try to Use minsdkVesion 8 in all your build.gradle files as well as AndroidManifest.xml files ans sync.

If it doesn't solves the problem go through your gradle console to and make required changes as per the error shown.

Note : While compilation, your minSdkVersion and targetSdkVersion in AndroidManifest.xml will be overridden by what you have mention in your build.gradle files.