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

Android: Crash on start #20

Open
TheKruspe opened this issue Jan 9, 2021 · 0 comments
Open

Android: Crash on start #20

TheKruspe opened this issue Jan 9, 2021 · 0 comments

Comments

@TheKruspe
Copy link

TheKruspe commented Jan 9, 2021

OS: Windows 10
Target: Galaxy S20

I cloned this repo, removed the line "prestart": "./node_modules/react-viro/bin/run_ngrok.sh", from package.json, fixed the error in metros blacklist.js (described here: https://stackoverflow.com/questions/58120990/how-to-resolve-the-error-on-react-native-start), ran npm install and I am now able to start the Metro Bundler. I connected my S20 via adb using adb -s <DEVICE_NAME> reverse tcp:8081 tcp:8081. If I now run the Viro Media Application Testbed, enter 127.0.0.1 and click on Go, the app closes. The console shows: BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (554/554), done.

logcat gives the following:

01-09 00:59:11.441 25073 25762 E AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher 01-09 00:59:11.441 25073 25762 E AndroidRuntime: Process: com.viromedia.viromedia, PID: 25073 01-09 00:59:11.441 25073 25762 E AndroidRuntime: java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at android.util.JsonReader.nextString(JsonReader.java:410) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at com.facebook.react.devsupport.BundleDeltaClient$BundleDeltaJavaClient.processDelta(BundleDeltaClient.java:103) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at com.facebook.react.devsupport.BundleDeltaClient.processDelta(BundleDeltaClient.java:71) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at com.facebook.react.devsupport.BundleDownloader.processBundleResult(BundleDownloader.java:314) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at com.facebook.react.devsupport.BundleDownloader.access$200(BundleDownloader.java:37) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at com.facebook.react.devsupport.BundleDownloader$1.onResponse(BundleDownloader.java:174) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 01-09 00:59:11.441 25073 25762 E AndroidRuntime: at java.lang.Thread.run(Thread.java:923)

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

1 participant