ReactVision / starter-kit

React Native project setup with Viro 🚀
MIT License
127 stars 90 forks source link

App crashing on startup (Q Android 10.0 / 29 API AVD) #32

Closed weex closed 2 years ago

weex commented 2 years ago

Just getting setup to try this and after getting the prerequisites in place. The app builds but crashes on startup. Will add more info as I research about getting info from the app crash.

Edit: Here's the logcat https://gist.github.com/weex/abe5b05214067e92936b5207c50744d5

$ npx react-native info
info Fetching system and libraries information...
System:
    OS: macOS 11.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 123.47 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
    Watchman: 2021.12.20.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /Users/dsterry/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 29, 30, 32
      Build Tools: 29.0.2, 30.0.2, 32.0.0
      System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.65.1 => 0.65.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
weex commented 2 years ago

Log from when I ran the app. The AVD has 28 in the name because the device I'd like to use is Android 9, but I saw in setup that 29 was required so changed this AVD to use Android 10.0 before running this.

$ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1059 file(s) to forward-jetify. Using 12 workers...
info JS server already running.
info Installing the app...
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: root project 'myviroapp', project ':app', project ':arcore_client', ...

> Task :app:installDebug
Installing APK 'app-x86-debug.apk' on 'Nexus_6P_API_28(AVD) - 10' for app:debug
Installed on 1 device.

BUILD SUCCESSFUL in 5s
31 actionable tasks: 2 executed, 29 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.myviroapp/.MainActivity }
weex commented 2 years ago

The AwesomeProject app from react-native startup worked ok, restarting Metro didn't do anything.

robertjcolley commented 2 years ago

Hmm. I see an issue with loading libviro_renderer.so here https://gist.github.com/weex/abe5b05214067e92936b5207c50744d5#file-gistfile1-txt-L458

robertjcolley commented 2 years ago

Ah. I see you're running on an emulator - Viro does not run on the emulators. This is documented here on the old docs, which we are currently migrating: https://docs.viromedia.com/docs/installing-viro-android#4-open-your-project-in-android-studio. I'll add a note to the readme

weex commented 2 years ago

Ok thanks. Will try with a device.