magento-react-native icon indicating copy to clipboard operation
magento-react-native copied to clipboard

Unable to install app on android devices

Open nextwaydevelopers opened this issue 1 year ago • 9 comments

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 avatar Jul 26 '23 09:07 nextwaydevelopers

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

where did you get those versions?

dimaportenko avatar Jul 26 '23 09:07 dimaportenko

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

But getting error.

3 4

nextwaydevelopers avatar Jul 26 '23 09:07 nextwaydevelopers

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

dimaportenko avatar Jul 26 '23 09:07 dimaportenko

No. I just tried fresh repo.

nextwaydevelopers avatar Jul 26 '23 09:07 nextwaydevelopers

in this case, it will not work for sure.

dimaportenko avatar Jul 26 '23 09:07 dimaportenko

I just followed:

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

nextwaydevelopers avatar Jul 26 '23 10:07 nextwaydevelopers

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

npx [email protected] init AwesomeProject

dimaportenko avatar Jul 26 '23 10:07 dimaportenko

npx [email protected] init AwesomeProject

Installed and run:

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

nextwaydevelopers avatar Jul 26 '23 10:07 nextwaydevelopers

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.

dimaportenko avatar Jul 26 '23 10:07 dimaportenko