Colorwaver icon indicating copy to clipboard operation
Colorwaver copied to clipboard

Error when generating using npx react-native run-android --variant=release

Open ssaguiar opened this issue 3 years ago • 2 comments

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.

ssaguiar avatar Apr 04 '22 18:04 ssaguiar

Ah yea I'll fix that as soon as possible.

Why are you building for release?

mrousavy avatar Apr 04 '22 21:04 mrousavy

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.

ssaguiar avatar Apr 04 '22 22:04 ssaguiar