error after upgarade "react-native" "^0.70.1", - react-native

after updating react native 0.64.3 npx react-native run-android app installing with icon but suddenly got this error and a white blank screen
: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
.gradle/caches/transforms-2/files-2.1/40340d0266c697f483e4d8d82154afae/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
/.gradle/caches/transforms-2/files-2.1/6e559baadda92a2bf6e59daa069e5722/jetified-react-native-0.70.1-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
.gradle/caches/transforms-2/files-2.1/bbe64d757289d178f000992f4ab3090b/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.

👋🏽
There is a problem with metadata for android.
Follow the upgrade helper from react-native wiki.
https://react-native-community.github.io/upgrade-helper/?from=0.64.3&to=0.70.1

Related

Incompatible version of react-devtools-core in react-native-debugger#0.13.0

I upgraded react-native-debugger from 0.11.6 to 0.13.0, and when I try to run my app, the debugger logs the error Unsupported Bridge operation "0" An incompatible version of react-devtools-core has been embedded in a renderer like React Native. To fix this, update the react-devtools-core package within the React Native application, or downgrade the react-devtools package you use to open the DevTools UI.
In the documentation for 0.13.0, it says to add the following to my package.json:
{
"overrides": {
"react-devtools-core": "~4.25.0"
}
}
I checked that this 4.25.0 is the most recent version of react-devtools-core, so I can't do what the error says and upgrade it. How should I approach this?

expo-av and react-native-track-player use incompatibile versione of exoplayer

I use expo for my app, all work fine in sdk 44 except a few bugs, to resolve that bugs I need to upgrade to sdk 45, now the problem is that in sdk 45 expo-av use an exoplayer versione incompatible with react-native-track-player.
Is it possible to downgrade expo-av to the version used in sdk 44? I've tried to do that by disinstalling and reainstallinge expo-av 10.2.1 with yarn, but the eas build fails with the following error: Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
Anyone may help me to solve this compatibilitt issue?

How to modify Podfile in an Expo-Managed React Native project

I have implemented an app that uses react-native-branch and #config-plugins/react-native-branch with the expo-managed workflow but upon building with EAS in iOS (Expo Application Services), its throwing this error:
The Swift pod `ExpoAdapterBranch` depends upon `react-native-branch`, which does not define modules.
To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries),
you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
Is there a way to do this in expo-managed workflow?
Other details of our project:
Expo SDK: v44
react-native-branch: v5.0.0
#config-plugins/react-native-branch: v1.0.2
I finally get it to build in iOS without errors by updating my react-native-branch version from 5.0.0 to 5.4.0 without any other changes to the plugin. However, expo is now giving off a warning saying that
Some dependencies are incompatible with the installed expo package version:
- react-native-branch - expected version: 5.0.0 - actual version installed: 5.4.0
If anyone has a better solution to this, I would gladly hear it. Thanks!

how to downgrade the react native version from 0.60.4 to 0.59

I'm working on a react-native project of version 0.60.4. a third party module(react-native-webrtc) is not supported for that version so I trying to downgrade the react-native version.
I tried that by simply changing the package on react-native in package.json.then getting an error given below.
Build input file cannot be found: 'XXXXXX/node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp'

Camera and Geolocation plugin issue with cordova android 6.3.0

I'm facing a issue after upgrading cordova android project to version 6.3.0 in using Camera and Geolocation plugin. These both plugin uses Permission helper class which requires cordova-plugin-compat. But with cordova android version 6.3.0 release cordova-plugin-compat is no longer supported (
https://cordova.apache.org/news/2017/09/22/plugins-release.html) as it is included in the core. But I'm getting error on resolving org.apache.cordova.PermissionHelper and in org.apache.cordova.BuildHelper . How to solve this issue.
Update cordova-plugin-compat to v1.2, which contains a restriction preventing the plugin files being deployed to cordova-android#6.3.0+:
cordova plugin rm cordova-plugin-compat --force
&& cordova plugin add cordova-plugin-compat#1.2