revoltchat / rvmob

React Native Revolt client. Community-led project.
https://rvlt.gg/rvmob
GNU Affero General Public License v3.0
115 stars 17 forks source link

bug: When trying to build the android app, the last comand hangs forever #18

Closed alexispurslane closed 1 year ago

alexispurslane commented 1 year ago

What happened?

All the previous commands in the build instructions ran fine, but the final one, yarn android, just hangs forever after saying "Starting JS server..."

I thought this was going to build an APK I could use, do I need to visit a certain localhost address or something?

Rexogamer commented 1 year ago

This isn't a bug with the app itself. Try re-running the command as it might've gotten stuck somehow; if that doesn't work, you might need to start the JS server (Metro) separately (open a second terminal in the directory, run yarn start, then try re-running yarn android again).

If this still fails, you might have some missing dependencies (i.e. Java/Android's build tools); however, if that turns out to be the issue, I might need to make the README clearer.

alexispurslane commented 1 year ago

I used netstat to figure out the port it was listening on and went to localhost:8081 in my browser. That gave me some broken options but no way to get an APK as far as I can tell. I tried using gradlew to build the app directly and it told me there were several dependencies I need to install, so I think that was it.

Rexogamer commented 1 year ago

Just to be clear, did you get it working in the end?

alexispurslane commented 1 year ago

Just to be clear, did you get it working in the end?

I had to go out and haven't had a chance since, but I think I'll be able to get it to work. You can close this issue for now if you want. Thank you!

Rexogamer commented 1 year ago

No worries; good luck! (Bear in mind that you can also get prebuilt debug builds from the Actions tab - the latest build can be downloaded here.)