tcw165 / my-dlib-experiment

DLib is a Deep Learning C++ library. This is an experiment running DLib on an Android app.
37 stars 12 forks source link

could not resolve all dependencies for configuration. #5

Closed karthi72 closed 6 years ago

karthi72 commented 6 years ago

Hi, the demo project in tech-pic-collage series helped me a lot to learn about face detection to get landmarks and dlib integration but when i tried to integrate the sample app it shows me the following error.

org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':demo-dlib'. org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':demo-dlib:_debugCompile'.

org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':lib-dlib'.

Expected NDK STL shared object file at C:\Users{username}\AppData\Local\Android\Sdk\ndk-bundle\sources\cxx-stl\llvm-libc++\libs\armeabi\libc++_shared.so

tcw165 commented 6 years ago

Oh, is it the build-tool version is too old in the project. I gotta update it when I'm available.

karthi72 commented 6 years ago

ok where i need to change those build-tools version? when i changed the build-tools version.

ext { compileSdkVersion = 27 buildToolsVersion = '27.0.3' minSdkVersion = 21 targetSdkVersion = 26 sourceCompatibilityVersion = JavaVersion.VERSION_1_7 targetCompatibilityVersion = JavaVersion.VERSION_1_7 ..... }

android { compileSdkVersion 27 buildToolsVersion "27.0.3" ..... }

karthi72 commented 6 years ago

The main issue is this Expected NDK STL shared object file at C:\Users\karthi\AppData\Local\Android\Sdk\ndk-bundle\sources\cxx-stl\llvm-libc++\libs\armeabi\libc++_shared.so.In the above path,not able to see armeabi instead of that armeabi-v7a folder am having.How to change the folder path?

tcw165 commented 6 years ago

Thanks for your discovery. Now I remember that the latest NDK doesn't support armeabi anymore.

screen shot 2018-07-28 at 9 20 25 am

So, it'd better to remove the armeabi support in the build.gradle, for example:

        ndk {
            // "x86", "x86_64", "armeabi", "armeabi-v7a", "arm64-v8a"
            abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
        }
tcw165 commented 6 years ago

@karthi72 : I just upgrade the Gradle scripts, the project configuration and the dependent libraries. Hope it works for you now.

karthi72 commented 6 years ago

not able to check the full process it is closing at initializing face detector progress itself.