gpt4 book ai didi

android - 建议 : use tools:overrideLibrary ="android.support.v7.appcompat" to force usage

转载 作者:可可西里 更新时间:2023-11-01 18:50:07 33 4
gpt4 key购买 nike

我从互联网上购买了应用程序(甲虫游戏)来编辑它..但是当我运行应用程序时这条消息出现在我身上

    Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 9 declared in library /Users/omar/Downloads/BeetleGame1/app/build/intermediates/exploded-aar/com.google.android.gms/play-services/7.5.0/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.all" to force usage

build.grade(项目:beetlegame1)

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
}

allprojects {
repositories {
jcenter()
}
}

build.grade(模块:app)

    apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "23.0.0 rc2"

defaultConfig {
applicationId "com.game"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_5
targetCompatibility JavaVersion.VERSION_1_5
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile 'com.google.android.gms:play-services:+'
}

build.grade(模块:google-play-services-lib)

    configurations.create("default")
artifacts.add("default", file('google-play-services_lib.jar'))

我可以附上下载应用程序游戏的链接.. 看看:)

最佳答案

导入的库 google play 服务有一个指定为 9 的 minsdk,而您似乎瞄准的是低得多的版本。要覆盖它,您需要在 AndroidManifest.xml 文件中添加 tools:overrideLibrary 和包名称,这将忽略库指定的 minSDK 版本。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="your package name">

<uses-sdk tools:overrideLibrary="com.google.android.gms.all"/>
--------------------------------
--------------------------------
</manifest>

tools:overrideLibrary marker

A special marker that can only be used with uses-sdk declaration to override importing a library which minimum SDK version is more recent than that application's minimum SDK version. Without such a marker, the manifest merger will fail. The marker will allow users to select which libraries can be imported ignoring the minimum SDK version.

关于android - 建议 : use tools:overrideLibrary ="android.support.v7.appcompat" to force usage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31226775/

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