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

build .apk file ??? #549

Closed
HongQuang231 opened this issue Apr 9, 2024 · 3 comments
Closed

build .apk file ??? #549

HongQuang231 opened this issue Apr 9, 2024 · 3 comments
Labels
question status:waiting-for-response Waiting for a response or clarification from the issue creator

Comments

@HongQuang231
Copy link

Ask your Question

when i build apk file by android studio, it's successfully, but when I try install apk file into real device, app throw error look like this
image
help me fix this????

@jbroma
Copy link
Member

jbroma commented Apr 10, 2024

@HongQuang231 this is most likely due to dev-server listening only to IPv6 by default, try running react-native start --host 127.0.0.1 to fix this.

This is also something we fixed in 4.0.0. You can try upgrading to @callstack/repack to version 4.0.0-rc.0 and see if that fixes the issue by itself

@jbroma jbroma added the status:waiting-for-response Waiting for a response or clarification from the issue creator label Apr 16, 2024
@mlakmal
Copy link

mlakmal commented Apr 26, 2024

noticed same issue. and i was able to use --host flag to point to 127.0.0.1 and it worked fine...

@jbroma
Copy link
Member

jbroma commented May 20, 2024

I'm closing this one since the solution was provided and Re.Pack 4.0.0 is already released as stable and it includes the fix for this scenario. If you issue is still there please open a new issue.

@jbroma jbroma closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question status:waiting-for-response Waiting for a response or clarification from the issue creator
Projects
None yet
Development

No branches or pull requests

3 participants