java - Facebook SDK import error -
i got issue when try import fb sdk project.
here log after execute project clean.
>error:a problem occurred configuring root project 'xxx'. > not resolve dependencies configuration ':_debugcompile'. > not find com.parse.bolts:bolts-android:1.2.0. searched in following locations: file:/users/ooo/library/android/sdk/extras/android/m2repository /com/parse/bolts/bolts-android/1.2.0/bolts-android-1.2.0.pom file:/users/ooo/library/android/sdk/extras/android/m2repository /com/parse/bolts/bolts-android/1.2.0/bolts-android-1.2.0.jar file:/users/ooo/library/android/sdk/extras/google/m2repository /com/parse/bolts/bolts-android/1.2.0/bolts-android-1.2.0.pom file:/users/ooo/library/android/sdk/extras/google/m2repository /com/parse/bolts/bolts-android/1.2.0/bolts-android-1.2.0.jar required by: :xxx:unspecified > com.facebook.android:facebook:4.6.0 and here import step
1) import moudule
2) add dependdencies :facebook
3) modify gradle.properties below
android_build_sdk_version = 23 android_build_tools_version = 23.0.1 android_build_min_sdk_version = 15 android_build_target_sdk_version =2 seems doesn't work... there way resolve that?
my build.gradle file:
{ apply plugin: 'android' buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' } } dependencies { compile filetree(dir: 'libs', include: '*.jar') compile files('libs/gson-2.2.2.jar') compile 'com.google.android.gms:play-services:7.3.0' compile files('libs/googleconversiontrackingsdk-2.2.4.jar') compile project(':facebook') } android { compilesdkversion 18 buildtoolsversion "21.1.1" sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } instrumenttest.setroot('tests') debug.setroot('build-types/debug') release.setroot('build-types/release') } }
try adding dependency in builld.gradle file
compile 'com.facebook.android:facebook-android-sdk:3.21.1' remove or module library have added facebook sdk
compile project(':facebook')
Comments
Post a Comment