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

Unable to install app on android devices #206

Open
nextwaydevelopers opened this issue Jul 26, 2023 · 9 comments
Open

Unable to install app on android devices #206

nextwaydevelopers opened this issue Jul 26, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@nextwaydevelopers
Copy link

Unable to install app on android devices. Getting error while install app on android device

  • Device: Andorid Pixel 6 API:34
  • react: "18.2.0",
  • react-native: "0.72.3",
  • Nodejs Version: v16.20.1

Please find attachment.

image_2023_07_26T09_33_39_163Z

@nextwaydevelopers nextwaydevelopers added the bug Something isn't working label Jul 26, 2023
@dimaportenko
Copy link
Owner

react: "18.2.0",
react-native: "0.72.3",

where did you get those versions?

@nextwaydevelopers
Copy link
Author

Tried
"react": "17.0.1",
"react-native": "0.64.2",

But getting error.

3
4

@dimaportenko
Copy link
Owner

Have you followed all the react native upgrade steps?
https://react-native-community.github.io/upgrade-helper/?from=0.64.2&to=0.72.3

@nextwaydevelopers
Copy link
Author

No. I just tried fresh repo.

@dimaportenko
Copy link
Owner

in this case, it will not work for sure.

@nextwaydevelopers
Copy link
Author

I just followed:

git clone https://github.com/dimaportenko/magento-react-native.git
npm install
npx react-native run-android

@dimaportenko
Copy link
Owner

can you run the newly created React Native application version 0.64.2? like

npx react-native@0.64.2 init AwesomeProject

@nextwaydevelopers
Copy link
Author

npx react-native@0.64.2 init AwesomeProject

Installed and run:

"dependencies": {
"react": "18.2.0",
"react-native": "0.72.3"
},

@dimaportenko
Copy link
Owner

Ok, generally this project isn't maintained anymore.
So I don't really know if version 0.64.2 is still working. You probably need to upgrade it before running it, but since you aren't familiar with react native it could be difficult to do.

If you are going to create React Native application for Magento 2 I recommend you to watch tutorials https://www.youtube.com/playlist?list=PL97fL9DAn9QyNAWAh-X-mFJdXKm96AqVM, I basically captured the process of creation from scratch.

Also, nowadays I recommend start new react native project with https://docs.expo.dev/. Which should be simpler for newcomers to start mobile development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants