Git Product home page Git Product logo

Comments (10)

AbhavThakur avatar AbhavThakur commented on June 11, 2024 2

hi @michaelmurr
i have fixed the issue we just need to add namespace in android /app/build.gradle file and remove from androidManifest.xml file

from upgrade-support.

skogby avatar skogby commented on June 11, 2024 2

I had the same error and it was solved when I found out we missed to add the namespace "com.<your namespace>" under android section in app/build.gradle after upgrade to 0.71.
It was not an issue before updating to 0.73 though.

See: https://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/0.71.0/RnDiffApp/android/app/build.gradle L96.

from upgrade-support.

michaelmurr avatar michaelmurr commented on June 11, 2024 1

I fixed this issue by creating a new react native project with version 0.73. I then copied all the files (including the .git folder to preserve my commit history) over and installed the npm packages one by one while configuring each one. After about 2 days i got it working in the new version without any issues.
I strongly recommend this over the tedious upgrade process of an existing project.

from upgrade-support.

PunainenAurinko avatar PunainenAurinko commented on June 11, 2024 1

Hi, I am encountering this same issue when upgrading from 0.72.9 to 0.73.2. Starting from scratch and copying files is not an option, as I have a huge project, with a lot of native modules and modifications in Android native files. Has anybody found a solution to this? Thanks!

from upgrade-support.

seco35 avatar seco35 commented on June 11, 2024 1

Hi, I am encountering this same issue when upgrading from 0.72.9 to 0.73.2. Starting from scratch and copying files is not an option, as I have a huge project, with a lot of native modules and modifications in Android native files. Has anybody found a solution to this? Thanks!

I assume your ios project is running without any issues. Here is how I solved my issue without integrating the sources fully in a new created project, which might help you and others that come across this issue:
1 ) Create a new react-native project (npx react-native@latest init AwesomProject)
2) Install react-native-rename (npm i react-native-rename)

  • Before doing rename you have to specify the project as git repo simply type git init and don't forget about the --skipGitStatusCheck while calling rename.
  1. Rename and change the bundle id of the new project using this library :
    npx react-native-rename "MyAppName" -b "com.myapp.myappname" --skipGitStatusCheck
  2. Make a backup of your android project in your project, that fails to start
  3. Delete and replace the android folder with the newly created project
  4. Alter your res folder for launcher icons and colors etc.
  5. Make changes to the manifest file (e.g. for Permissions), the .gradle and the MainApplication.kt, MainActivity.kt files if there are some changes, that need to be made for your dependencies.

It took me about half an hour to solve it on that way, would probably take longer if you have to copy the whole project including configurations in ios. I know, it might be a bit tricky, but that avoids to copy paste the whole project sources.

from upgrade-support.

AbhavThakur avatar AbhavThakur commented on June 11, 2024

hi
The same issue coming on my project also.

from upgrade-support.

AbhavThakur avatar AbhavThakur commented on June 11, 2024

hi @michaelmurr
I have a big project and copying it will be a difficult task.
Do you know any other option?

from upgrade-support.

michaelmurr avatar michaelmurr commented on June 11, 2024

hi @michaelmurr I have a big project and copying it will be a difficult task. Do you know any other option?

I don't unfortunately know another option. My own project was quite big, consisting of around 7.5k lines of code with countless npm packages.

What I do know is that i spent about half a month reading through every single post and article i found on the internet about upgrading, as well as asking ChatGPT and Google Bard in the most different ways about this and none of them helped. while I often times managed to fix an error, this usually turned out to be only a small step forwards since the next error came right by, repeating the cycle again.

My app was already launched in the google play store beforehand and I have also done plenty of configuration work for things like google sign in and keystore files. In my case, migration issues that came along in regards to those cofigurations were quickly resolved by copying the corresponding configurationfiles over into the right directorys and by making sure the package name (com.example.app) from the new project lined up with the old one.

from upgrade-support.

seco35 avatar seco35 commented on June 11, 2024

Encountering same issue whilst upgrading from 0.72.4 to 0.73.2.
No issues on iOS, it's always a pain in the... with gradle and android...

from upgrade-support.

seco35 avatar seco35 commented on June 11, 2024

hi @michaelmurr i have fixed the issue we just need to add namespace in android /app/build.gradle file and remove from androidManifest.xml file

Could you give more details on that. What do you mean exactly?

from upgrade-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.