question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uses-sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library [com.android.support:appcompat-v7:23.2.0]

See original GitHub issue

I’m following this Google Play Games Services tutorial: https://developers.google.com/games/services/android/quickstart#before_you_begin

I’ve followed every single step in this tutorial, but when I tried to build the “Type-A-Number” package, it showed me:

Error:Execution failed for task ':libraries:BaseGameUtils:processDebugAndroidTestManifest'.
> java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library [com.android.support:appcompat-v7:23.2.0] /Users/sean/Progs/android-basic-samples/BasicSamples/libraries/BaseGameUtils/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.2.0/AndroidManifest.xml
    Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage

Can anyone tell me how to solve it?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
SpanasGamesUnitycommented, Mar 29, 2016

File->Project Structure and set there for every module min SDK version in Flavors section.

1reaction
HashiramaHadidcommented, Nov 23, 2018

You have to add the minSdkVersion to your build.gradle.

Otherwise, gradle uses the default value = 1. minSdkVersion *sdk

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be ...
You are using a library with minSdk=7 , then you can't use minSdk=1. Also pay attention that gradle overrides the values in the...
Read more >
Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be ...
uses-sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library com.android.support:appcompat-v7:19.0.1.
Read more >
Support Library Revision Archive - Android Developers
This page provides details about older Support Library package releases. For the most recent Support Library releases, see Recent Support ...
Read more >
OSS Android libraries developed
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 21 declared in library [:sensey]. Suggestion: + Use a compatible library ......
Read more >
minSdkVersion 14 cannot be smaller than version 16 declared ...
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 16 declared in library ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found