You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
OS: Windows 10
Target: Galaxy S20
I cloned this repo, removed the line
"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",
frompackage.json
, fixed the error in metrosblacklist.js
(described here: https://stackoverflow.com/questions/58120990/how-to-resolve-the-error-on-react-native-start), rannpm install
and I am now able to start theMetro Bundler
. I connected my S20 via adb usingadb -s <DEVICE_NAME> reverse tcp:8081 tcp:8081
. If I now run theViro Media Application Testbed
, enter127.0.0.1
and click onGo
, 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)
The text was updated successfully, but these errors were encountered: