tzutalin / dlib-android-app

:dragon: Android app to demo dlib-android(https://github.com/tzutalin/dlib-android). Use the prebuilt shared-lib built from dlib-android
Apache License 2.0
683 stars 246 forks source link

Error:Execution failed for task ':dlib:ndkBuild'. #6

Closed piweihwt closed 8 years ago

piweihwt commented 8 years ago

import to Android Studio it will show this error:

is there any thing wrong of my env.

Error:Execution failed for task ':dlib:ndkBuild'.

A problem occurred starting process 'command 'idk-build''

tzutalin commented 8 years ago

@piweihwt

Somehow, there are some issues about using Android studio's gradle to build. I will fix the gradle in few days.

You can use the command as bellows to build first, and uncomment ndk-build in dlib's gradile.

$ cd dlib-android-app/dlib/src/main/dlib $ ndk-build -j8 copy *.so to dlib-android-app/dlib/src/main/jniLibs

tzutalin commented 8 years ago

@piweihwt I figure out your problem. The root cause is that your Android stduio did not find nkd-build command.

One of solutions: Add ndk.dir=[YOUR_NDK_FOLDER] in local.prperties