问题是..
Error:Execution failed for task ':app:processDebugManifest'.
清单合并失败:uses-sdk:minSdkVersion
8不能小于库com.android.support:support-v4:21.0.0-rc1中声明的L版本
build.gradle中的代码
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.androidexample.gcm"
minSdkVersion 8
targetSdkVersion 16
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:+'
compile 'com.google.android.gms:play-services:+'
//compile 'com.android.support:support-v4:20.0.0'
//compile 'com.google.android.gms:play-services:5.0.77'
}
AndroidManifest中的代码是..
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androidexample.gcm"
android:versionCode="1"
android:versionName="1.0" >
<!-- GCM requires Android SDK version 2.2 (API level 8) or above. -->
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<!-- Main activity. -->
<application
android:name="com.androidexample.gcm.Controller"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<!-- Register Activity -->
<activity
android:name="com.androidexample.gcm.RegisterActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.DELETE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="com.idrivecare.familypro" />
</intent-filter>
</activity>
<!-- Main Activity -->
<activity
android:name="com.androidexample.gcm.MainActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name" >
</activity>
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.androidexample.gcm" />
</intent-filter>
</receiver>
<service android:name="com.androidexample.gcm.GCMIntentService" />
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
</application>
<!-- GCM connects to Internet Services. -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Creates a custom permission so only this app can receive its messages. -->
<permission
android:name="com.androidexample.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.androidexample.gcm.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- Network State Permissions to detect Internet status -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Permission to vibrate -->
<uses-permission android:name="android.permission.VIBRATE" />
</manifest>
谢谢你,先生..
如果您使用
'com.android.support:support-v4:+'
它将假定它可以使用21.x,因为它是最新版本(但与小于L的目标不兼容)
更改为
'com.android.support:support-v4:20.+'
因此它将下载最新的20.x版本
我最近正试图将该项目转移到Android Studio。由于此错误,我无法导出APK 任务': app:过程释放清单'执行失败。 清单合并失败:使用sdk:minSdkVersion 8不能小于库com中声明的版本9。谷歌。Android游戏服务:6.1。71 我已经检查了我的舱单文件,但它是9而不是8...那是指什么...我需要更新什么吗...注意:我最初使用eclipse并转向Android
问题是。。 清单合并失败:使用sdk:minSdkVersion 8不能小于库com中声明的版本L。Android支持:support-v4:21.0。0-rc1 build.gradle密码 Android清单中的代码是... 谢谢你先生...
错误:任务“:app:ProcessDebugManifest”执行失败。 清单合并失败:来自AndroidManifest.xml:13:9-42的属性application@icon value=(@mipmap/appiconnew)也存在于[com.pnikosis:materialish-progress:1.0]AndroidManifest.xml:13:9-45 value=(@d
错误:任务“app:processDebugManifest”的执行失败。 清单合并失败:uses-sdk:minSdkVersion 7不能小于库中声明的版本14[com . Android . support:app compat-V7:26 . 0 . 0-alpha 1]E:\ WorkSpace \ and studio \ Test1 \ app \ build \ intermedi
我似乎得到了这样的错误: