CopyPastor

Detecting plagiarism made easy.

Score: 1.7523489933055227; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2022-11-11
by Deepak Singh

Original Post

Original - Posted on 2022-11-08
by reggi49



            
Present in both answers; Present only in the new answer; Present only in the old answer;

There are some issues in the react-native itself.
the solution to this issue - [https://github.com/facebook/react-native/issues/35210][1]
For react-native ( >= 0.63)
In **android -> build.gradle** add this exclusive Content inside the allprojects.repositories



allprojects { repositories { exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } } // ... } }


For older react-native (< 0.63)
Add this in the all projects area of your **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())
allprojects { configurations.all { resolutionStrategy { // Remove this override in 0.65+, as a proper fix is included in react- native itself. force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION } }

[1]: https://github.com/facebook/react-native/issues/35210
That because [Android build issue][1] since Nov 4th 2022. I have resolved that by adding a few line of code based on the thread.
You can add this in the allprojects area of your android/buld.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())
allprojects { configurations.all { resolutionStrategy { // Remove this override in 0.65+, as a proper fix is included in react-native itself. force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION } }
in my case, i have added under repositories. see below.
allprojects { repositories { google() mavenCentral() } configurations.all { resolutionStrategy { // Remove this override in 0.65+, as a proper fix is included in react-native itself. force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION } } }
[1]: https://github.com/facebook/react-native/issues/35210

        
Present in both answers; Present only in the new answer; Present only in the old answer;