vision-camera-image-labeler icon indicating copy to clipboard operation
vision-camera-image-labeler copied to clipboard

Error building for Android

Open obasille opened this issue 3 years ago • 0 comments

Hi, I've just cloned the master branch and run the following commands on Windows:

cd example
yarn
yarn run android

And got the following compilation error:

In file included from ../../../../src/main/cpp/java-bindings/JHashMap.cpp:5:
../../../../src/main/cpp/java-bindings/JHashMap.h:16:8: error: redefinition of 'JHashMap'
../../../../build/fbjni-0.3.0-headers.jar\fbjni/detail/Iterator.h:170:8: note: previous definition is here
../../../../src/main/cpp/java-bindings/JHashMap.cpp:15:43: error: redefinition of 'create'
../../../../build/fbjni-0.3.0-headers.jar\fbjni/detail/Iterator-inl.h:230:42: note: previous definition is here
In file included from ../../../../src/main/cpp/JSIJNIConversion.cpp:25:
../../../../src/main/cpp/java-bindings/JHashMap.h:16:8: error: redefinition of 'JHashMap'
../../../../build/fbjni-0.3.0-headers.jar\fbjni/detail/Iterator.h:170:8: note: previous definition is here

Not sure what to do... Thanks in advance for your help!

obasille avatar Apr 25 '22 22:04 obasille