Error when generating using npx react-native run-android --variant=release
I get this error when trying to compile using the command: npx react-native run-android --variant=release
In file included from ../../../../src/main/cpp/JSIJNIConversion.cpp:25: ../../../../src/main/cpp/java-bindings/JHashMap.h:16:8: error: redefinition of 'JHashMap' struct JHashMap : JavaClass<JHashMap<K, V>, JMap<K, V>> { ^ ../../../../build/fbjni-0.3.0-headers.jar\fbjni/detail/Iterator.h:170:8: note: previous definition is here struct JHashMap : JavaClass<JHashMap<K, V>, JMap<K, V>> { ^ 1 error generated.
Ah yea I'll fix that as soon as possible.
Why are you building for release?
I am starting to lean React and React Native. For this, I am trying to compile several open source codes (projects) to see how they work. I am trying to build for release so I don't need to use Expo on my device to see the results.