Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ssaguiar opened this issue Apr 4, 2022 · 2 comments

Comments

@ssaguiar
Copy link

ssaguiar commented Apr 4, 2022

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.

@mrousavy
Copy link
Owner

mrousavy commented Apr 4, 2022

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

Why are you building for release?

@ssaguiar
Copy link
Author

ssaguiar commented Apr 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants