1

I had the common errors like when trying to setup the fb sdk such as ANDROID_BUILD_SDK_TOOLS ERROR and getbootclasspath() method error

but some of the solutions that people posted on SO has the minimum sdk as 14, instead of 9 (which is shown on the fb's guide). Now in my app's build.gradle file, if I use minSdkVersion 9 instead of 14, it wont work and it will say:

Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library

I have researched, but couldn't find the solution for using 9 because I want to support the app on Gingerbread.

Fuad
  • 1,419
  • 1
  • 16
  • 31
  • this solution does not work: http://stackoverflow.com/questions/24438170/manifest-merger-failed-uses-sdkminsdkversion-14 – Fuad Jun 06 '15 at 04:49

2 Answers2

5

If anyone has this kind of error

"uses-sdk:minSdkVersion 14 cannot be smaller than version 15"

Just downgrade FacebookSDK to 4.5.0

compile 'com.facebook.android:facebook-android-sdk:4.5.0'
Gent
  • 6,215
  • 1
  • 37
  • 40
3

nvm I solved it. All I had to do was put this in the app's manifest file:

> <uses-sdk android:targetSdkVersion="22" android:minSdkVersion="9"
>               tools:overrideLibrary="com.facebook"/>
Fuad
  • 1,419
  • 1
  • 16
  • 31