The problem is that current FB SDK uses Gradle only. If I’m trying to use it as JAR dependency in .vcproj settings - it can’t import com.facebook.(…) in Java or can’t find classes via JNI.
I tried to use settings.gradle for it and stuck:
include ":facebook"
project(":facebook").projectDir = file("../../../android/facebook-4.3.0")
I got this message:
FAILURE: Build failed with an exception.
* What went wrong:
No projects in this build have build file 'D:\...\Debug\Android\build\nsight_tegra_build.gradle'.
I’m still trying to solve it via --init-script option, but I think that you guys should create feature which will allow to programmer to use his own ‘build.gradle’ file.
upd:
I’m trying something like this in init.gradle: