Gradle stuck while Linking? (OpenNI2 + OF + AndroidStudio)

I am trying to get a depth map by interfacing ASUS Xtion Pro Live with my Android smartphone. To integrate OpenNI2 in androidEmptyExample project, I followed Hirotaka Niisato’s guide, though I am using Windows. When I include OpenNI header file in ofApp.h and compile the project, the gradle build gets stuck at this point:

Linking libs/armeabi-v7a/ for android/armeabi-v7a
C:/Android/android-ndk-r9d/toolc... -lc -lgnustl_static -lgcc -lOpenNI2 -lOniFile -lPS1080 

Complete Gradle Console Log uploaded here.

I think the problem is with linking shared libraries. I added OpenNI2 android shared library path in PLATFORM_LDFLAGS variable in like this:

PLATFORM_LDFLAGS += --sysroot=$(SYSROOT) -nostdlib -L"$(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$(GCC_VERSION)/libs/$(ABI_PATH)" -L"C:/OpenNI2-master/Packaging/Final/OpenNI-android-2.2"

maybe I am doing something wrong here?