Qualeams / Android-Face-Recognition-with-Deep-Learning-Library

Face Recognition library for Android devices is an Android library (module) which includes several face recognition methods.
Apache License 2.0
371 stars 135 forks source link

Published arr v1.5.3 seems to be corrupted #18

Open mkosik opened 6 years ago

mkosik commented 6 years ago

It is impossible to build a project with v1.5.3 dependancy as it fails as follows:

From Gradle sync (gradle:3.0.0-beta4'): Unable to resolve dependency for ':app@debug/compileClasspath': Failed to transform file 'facerecognitionlibrary-1.5.3.aar' to match attributes {artifactType=android-exploded-aar} using transform ExtractAarTransform

Failed to transform file 'facerecognitionlibrary-1.5.3.aar' to match attributes {artifactType=android-exploded-aar} using transform ExtractAarTransform

java.io.EOFException: Unexpected end of ZLIB input stream Unexpected end of ZLIB input stream

I even downgraded Gradle to stable gradle:2.3.3 and it still has a problem with extracting v1.5.3 arr: Error:Execution failed for task ':app:prepareChZhawFacerecognitionlibrary153Library'.

Unable to unzip 'C:....gradle\caches\modules-2\files-2.1\ch.zhaw\facerecognitionlibrary\1.5.3...\facerecognitionlibrary-1.5.3.aar' to ...

I cleared Gradle caches as well as project build multiple times, forced it to re-download dependencies & I still get this error. I tried to unzip the arr myself with the same result & a bit more debug info: Headers Error Unconfirmed start of archive Warnings: There are some data after the end of the payload data CRC failed: assets\optimized_facenet.pb

Published v1.5.3 arr seems to be corrupted.

PS: I had no problems building with v1.5.4 utilizing older & newer Gradle as well as AS. [UPDATE] Dependency v1.5.2 doesn't have this problem either, but lacks other fixes & build fails when it comes to NDK, so downgrading to v1.5.2 isn't an option either: Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.

More than one file was found with OS independent path 'lib/arm64-v8a/libopencv_java3.so'

sladomic commented 6 years ago

Hi @mkosik

I just tried the following:

  1. Rename old project folder
  2. git clone https://github.com/Qualeams/Android-Face-Recognition-with-Deep-Learning-Test-Framework.git
  3. Android Studio --> File --> Open --> Open the existing/cloned project
  4. Run/Build

How are you using the library? Do you import it in another project?

Regards, Michael

mkosik commented 6 years ago

Hi @sladomic, yes I've tried it with your demo project as you just described.

For dependency v1.5.3 I always had aforementioned result (tried with older & newer Gradle plugin and AS). Downloaded arr seems corrupted for an external zip tool as well (I used 7-Zip). I even tried File --> Invalidate caches / restart & Build --> Clean Project with the same result, multiple times.

As already mentioned, I had no such problem with v1.5.2 as well as v1.5.4.

Regards, Miro