C:\Users\PC\AndroidStudioProjects\FacebookSDK\facebook\build.gradle Error:(15, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':facebook'.
Asked
Active
Viewed 316 times
0

chiwangc
- 3,566
- 16
- 26
- 32
-
Please add some text to you answer to explain what you are doing or it will, very likely, be closed. – uraimo May 26 '15 at 07:28
2 Answers
0
Just add compile 'com.facebook.android:facebook-android-sdk:4.1.2'
to your dependencies in the build.gradle file of your app!
EDIT:

Skyrisu
- 373
- 1
- 5
- 14
-
Error:(112, 0) Cannot call getBootClasspath() before setTargetInfo() is called. – Passant Abdellatif May 23 '15 at 10:56
-
dependencies { compile 'com.android.support:support-v4:[21,22)' compile 'com.parse.bolts:bolts-android:1.2.0' compile 'com.facebook.android:facebook-android-sdk:4.1.2' } android { compileSdkVersion 22 buildToolsVersion "22.1.2" defaultConfig { minSdkVersion 15 targetSdkVersion 22 } – Passant Abdellatif May 23 '15 at 10:58
-
Please tell me your Gradle Version. You can find it in the other build.gradle file. Right above the yellow marked! – Skyrisu May 23 '15 at 16:06
-
-
Please try to change it to 1.2.3 and tell me if the Error still occurs. – Skyrisu May 23 '15 at 20:59
-
Error:failed to find Build Tools revision 20.0.0 Install Build Tools 20.0.0 and sync project – Passant Abdellatif May 24 '15 at 06:55
-
Go into the Android SDK Manager and update the Android SDK Build-Tools – Skyrisu May 24 '15 at 10:48
-
Error:Execution failed for task ':facebook:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\NewAndroid\build-tools\22.0.0\aapt.exe'' finished with non-zero exit value 1 – Passant Abdellatif May 25 '15 at 05:37
-
Did you already change the buildToolsVersion in your build.gradle file to the one you downloaded (hopefully the newest)? – Skyrisu May 25 '15 at 08:43
-
-
0
Write all those variables values in "gradle.properties" file.
Like
ANDROID_BUILD_TARGET_SDK_VERSION=21
ANDROID_BUILD_TOOLS_VERSION=21.1.0
ANDROID_BUILD_SDK_VERSION=21
ANDROID_BUILD_MIN_SDK_VERSION=9

Shaktisinh Jadeja
- 1,427
- 1
- 17
- 22
-
Error:(111, 0) Cannot call getBootClasspath() before setTargetInfo() is called. – Passant Abdellatif May 27 '15 at 10:12
-
go through this link : http://stackoverflow.com/questions/19961828/using-facebook-sdk-in-android-studio – Shaktisinh Jadeja May 27 '15 at 10:30