I'm consistenly getting the same error on HelloFacebookSample when importing Facebook SDK.
Error:(8, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':HelloFacebookSample'.
I know the error is regarding the HelloFacebookSample, and I've tried to assign 'ANDROID_BUILD_SDK_VERSION' = 20 (MY SDK VERSION). It still shoots the same error.
Here is a snapshot
This error is sucking the life out of me. How can I get rid of this error?
Facebook's "build.gradle" file assumes that you have a "gradle.properties" file where the ANDROID_BUILD_SDK_VERSION variable is declared. So all you have to do is create a file called "gradle.properties" in the root level and add the following to it.
ANDROID_BUILD_TARGET_SDK_VERSION=19
ANDROID_BUILD_TOOLS_VERSION=10.0.0
ANDROID_BUILD_SDK_VERSION=19
ANDROID_BUILD_MIN_SDK_VERSION=11
You have this error because you did not replace 'ANDROID_BUILD_SDK_VERSION
' by 20 in HelloFacebookSample/build.gradle
, not in Facebook/build.gradle
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With