0

I am getting the following error trying to build my APK:

uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.facebook.android:facebook-android-sdk:4.6.0] /Users/jack/...
Suggestion: use tools:overrideLibrary="com.facebook" to force usage

Even after I add the tools:overrideLibrary line to my AndroidManifest, I clean and build the project and receive the exact same failure message.

Has anyone experienced this issue before? I have looked through some similar SO questions and none of the solutions are the fix I am looking for.

Jack Ryan
  • 1,287
  • 12
  • 26

1 Answers1

0

You are using a library that its minsdkversion is below your project's minsdkversion.

Just change your minsdkversion in your build.gradle file of your app to 15 and that will be ok ;)

There is another way which is not stable. Just force it to use by adding one line of code to your application manifest. See this link:

How do I use tools:overrideLibrary in a build.gradle file?

Community
  • 1
  • 1
Amir Ziarati
  • 14,248
  • 11
  • 47
  • 52
  • What if I intended for the minSdkVersion to be 14? – Jack Ryan Oct 10 '16 at 19:51
  • You cant use a library wich needs minsdkversion upper than your app. Its kinda that library rule. If the library is yours chanhe the mindsdkversion of the library. What is the library ? – Amir Ziarati Oct 10 '16 at 19:53
  • It's the Facebook Parse library. Unfortunately I can't mess with the minSdkVersion for that :/ – Jack Ryan Oct 10 '16 at 19:54
  • There is another way which is not stable. Just force it to use by adding one line of code to your application manifest. See this link: http://stackoverflow.com/questions/27095077/how-do-i-use-toolsoverridelibrary-in-a-build-gradle-file – Amir Ziarati Oct 10 '16 at 19:56