android - Execution failed for task ':processDebugAndroidTestManifest' sdk:minSdkVersion 1 cannot be smaller than version 7 -


i want add achievements , xp simple game basegameutils of google play services shows error :-

error:execution failed task':basegameutils:processdebugandroidtestmanifest'. 

manifest merger failed : uses-sdk:minsdkversion 1 cannot smaller version 7 declared in library [com.android.support:appcompat-v7:20.0.0] c:\users\admin\desktop\android-basic-samples-master\freexpandlevelup\basegameutils\build\intermediates\exploded-aar\com.android.support\appcompat-v7\20.0.0\androidmanifest.xml suggestion: use tools:overridelibrary="android.support.v7.appcompat" force usage

here android manifest.xml :-

<?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="com.org.superhuman.freexpandlevelup"> <uses-permission android:name="android.permission.internet" /> <uses-sdk tools:overridelibrary="com.google.android.gms.all"/> <application     android:allowbackup="true"     android:icon="@mipmap/ic_launcher"     android:label="@string/app_name"     android:supportsrtl="true"     android:theme="@style/apptheme">     <activity android:name=".mainactivity" android:screenorientation="portrait">         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity> </application> 

here build.gradle (module:app) :-

apply plugin: 'com.android.application'  android { compilesdkversion 23 buildtoolsversion "23.0.3" defaultconfig {     applicationid "com.org.superhuman.freexpandlevelup"     minsdkversion 15     targetsdkversion 23     versioncode 1     versionname "1.0"     testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } }  dependencies { compile filetree(dir: 'libs', include: ['*.jar'])   compile 'com.android.support:appcompat-v7:23.2.1' compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha1' compile 'com.google.android.gms:play-services-ads:9.0.0' testcompile 'junit:junit:4.12' androidtestcompile 'com.android.support.test.espresso:espresso-core:2.2.2' androidtestcompile 'com.android.support.test:runner:0.5' androidtestcompile 'com.android.support:support-annotations:23.2.1' } 

and here top level project build.gradle:-

// top-level build file can add configuration options common        sub-projects/modules.  buildscript { repositories {     jcenter() } dependencies {     classpath 'com.android.tools.build:gradle:2.2.0-alpha1'      // note: not place application dependencies here; belong     // in individual module build.gradle files } }  allprojects { repositories {     jcenter() } }  task clean(type: delete) { delete rootproject.builddir } 

im beginner in android game development created game in 3 days cant able add achievements, xp , google game login game.

here basegameutils gradle :-

apply plugin: 'com.android.library'  buildscript { repositories {     jcenter() }  dependencies {      classpath 'com.android.tools.build:gradle:1.3.1'  } }  dependencies { // set defaults basegameutils can used outside of basicsamples if (!project.hasproperty('appcompat_library_version')) {     ext.appcompat_library_version = '20.0.+' } if (!project.hasproperty('support_library_version')) {     ext.support_library_version = '20.0.+' } if (!project.hasproperty('gms_library_version')) {     ext.gms_library_version = '8.1.0' }  compile "com.android.support:appcompat-v7:${appcompat_library_version}" compile "com.android.support:support-v4:${support_library_version}" compile "com.google.android.gms:play-services-games:${gms_library_version}" compile "com.google.android.gms:play-services-plus:${gms_library_version}" }  android { // set defaults basegameutils can used outside of basicsamples if (!project.hasproperty('android_compile_version')) {     ext.android_compile_version = 23 } if (!project.hasproperty('android_version')) {     ext.android_version = '23' }  compilesdkversion android_compile_version buildtoolsversion android_version } 

basegameutils manifest :-

<?xml version="1.0" encoding="utf-8"?> <!--  copyright (c) 2013 google inc.   licensed under apache license, version 2.0 (the "license");  may not use file except in compliance license.  may obtain copy of license @    http://www.apache.org/licenses/license-2.0    unless required applicable law or agreed in writing, software   distributed under license distributed on "as is" basis,   without warranties or conditions of kind, either express or implied.   see license specific language governing permissions ,   limitations under license.    -->    <manifest xmlns:android="http://schemas.android.com/apk/res/android"   package="com.google.example.games.basegameutils"   android:versioncode="1"   android:versionname="1.0" >     <application>     <meta-data android:name="unityplayer.forwardnativeeventstodalvik"     android:value="true" />    </application>     </manifest> 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -