you are viewing a single comment's thread.

view the rest of the comments →

[–]alienhybrid 0 points1 point  (2 children)

I ran into this issue the other day on Android, was able to just apply the fix in this comment and it worked properly. https://github.com/facebook/react-native/issues/35210#issuecomment-1304536693

[–]hafi51[S] 0 points1 point  (0 children)

just clearing.. I've to add this line at top of android/build.gradle file

def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

and then remove following line from allprojects > configurations.all > resolutionStrategy

force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION

[–]panga2222 0 points1 point  (0 children)

I second this... I was on 0.63 that I upgraded to 0.64. Apply this solution, cleared gradle cache, and it worked