Comments (10)
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.
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.
from upgrade-support.
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.
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.
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.
- Rename and change the bundle id of the new project using this library :
npx react-native-rename "MyAppName" -b "com.myapp.myappname" --skipGitStatusCheck - Make a backup of your android project in your project, that fails to start
- Delete and replace the android folder with the newly created project
- Alter your res folder for launcher icons and colors etc.
- 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.
hi
The same issue coming on my project also.
from upgrade-support.
hi @michaelmurr
I have a big project and copying it will be a difficult task.
Do you know any other option?
from upgrade-support.
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.
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.
hi @michaelmurr i have fixed the issue we just need to add namespace in
android /app/build.gradle
file and remove fromandroidManifest.xml
file
Could you give more details on that. What do you mean exactly?
from upgrade-support.
Related Issues (20)
- Android: the demo so is always crash when migrate to my application
- Most of Time while going app foreground to background or appState change to inactive not calling API.
- upgrading from RN 0.72.9 to 0.73.2(or 0.73.5) tsconfig path errors HOT 7
- iOS application freezes on start when upgrading from react-native 0.68.4 to 0.70.14 HOT 8
- Exception bridge module null does not conform to RCTBridgeModule was dispatchViewManagerCommand Error after Upgrading to react native from 0.71.16 to 0.72 HOT 2
- React-native version upgarde issue from 0.65.0-0.68.0 HOT 1
- Pod Install returning error about react-utils when upgrading from 0.62.2 to 0.72.10
- MainApplication.kt: Unresolved reference: BuildConfig HOT 9
- Upgraded to RM 0.73 - Metro bundler not connected to app when running in iOS Simulator HOT 1
- Showing blank white screen on android emulator with no error in metro after upgrading from 0.67.1 to 0.73.6 HOT 2
- Unable to resolve module @babel/runtime/helpers/interopRequireDefault HOT 1
- iOS app crash 0.73.2
- RN upgrade 0.71.14 -> 0.73.7 - org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction HOT 1
- jest fails import typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS';
- RN 0.73.7 to 0.73.8 - Failed to transform react-android-0.73.8-debug.aar HOT 1
- v74.0: No podspec found for RCTDeprecation HOT 1
- Android unable to build in react-native:0.73.2 HOT 1
- React Native ^0.73.0 upgrade excludes i386 arch when pod install is run causes IOS build to fail.
- Android: Foreground Service persistence
- Jest fails to start tests after upgrade from react-native v0.70.5 to 0.73.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upgrade-support.