Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

App created with ignite-bowser doesn't load on android emulator #318

Open
EricWiener opened this issue Feb 23, 2020 · 3 comments
Open

App created with ignite-bowser doesn't load on android emulator #318

EricWiener opened this issue Feb 23, 2020 · 3 comments

Comments

@EricWiener
Copy link

What's going on?

Not able to run ignite-bowser app on Android simulator. This issue doesn't happen when creating an app with npx react-native init AwesomeProject.


Steps to reproduce:

Setup Android environment using https://facebook.github.io/react-native/docs/getting-started

Create a new app

$ ignite new Test # choose bowser. With or without detox doesn't matter
$ cd Test
$ yarn install
$ react-native run-android

The simulator pops up with alert: "Test keeps stopping"


ignite doctor

ignite doctor
System
  platform           darwin
  arch               x64
  cpu                16 cores     Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  directory          Test         /Users/ericwiener/repositories/examples/Test

JavaScript
  node               10.16.0      /usr/local/bin/node
  npm                6.13.7       /usr/local/bin/npm
  yarn               1.22.0       /usr/local/bin/yarn

Ignite
  ignite-cli           3.5.1                                                                                                        /usr/local/bin/ignite
  ignite src           build                                                                                                        /usr/local/lib/node_modules/ignite-cli/build
  navigation           react-navigation
  generators           {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}
  createdWith          3.5.1
  boilerplate          ignite-bowser
  boilerplateVersion   4.13.0

Android
  java               1.8.0_242    /usr/bin/java
  android home       -            /Users/ericwiener/Library/Android/sdk

iOS
  xcode              11.3.1
  cocoapods          1.8.4        /usr/local/bin/pod
@ysvahn
Copy link

ysvahn commented Feb 26, 2020

I have the exact same problem, fresh install then unable to run the app on Android.

System
  platform           darwin
  arch               x64
  cpu                16 cores     Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  directory          Strum        /Users/yourisvahn/projects/Strum

JavaScript
  node               13.2.0       /usr/local/bin/node
  npm                6.13.6       /usr/local/bin/npm
  yarn               1.21.0       /usr/local/bin/yarn

Ignite
  ignite-cli           3.5.1                                                                                                        /usr/local/bin/ignite
  ignite src           build                                                                                                        /Users/yourisvahn/.config/yarn/global/node_modules/ignite-cli/build
  navigation           react-navigation
  generators           {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}
  createdWith          3.5.1
  boilerplate          ignite-bowser
  boilerplateVersion   4.13.0

Android
  java               1.8.0_242    /usr/bin/java
  android home       -            /Users/yourisvahn/Library/Android/sdk

iOS
  xcode              11.3.1
  cocoapods          1.8.4        /usr/local/bin/pod

@EricWiener
Copy link
Author

Solved this issue. You need to add the following lines to the dependencies section of android/app/build.gradle for react-navigation:

implementation 'androidx.appcompat:appcompat:1.1.0-rc01' // react navigation
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02' // react navigation

@chalupagrande
Copy link

I had a similar issue. I kept getting: unsupported-class-file-major-version-57
Fixed it by changing the gradle version as per this stack overflow suggestion

Furthermore, I had to make sure that my Java version was 13 and not 14 (for both android studio and my cli/.zshrc)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants