2 files found with path ‘lib/arm64-v8a/libc++_shared.so‘ from inputs...-react native

  1. An error occurred when installing react-native:
  2. Let me first declare that my rn is    0.68.2
  3. Edit it   android/build.gradle ,and add a paragraph to make all versions unified.

    
    allprojects {
        
        // ...
    
        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())
    
        configurations.all {
            resolutionStrategy {
                force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
            }
        }
    }
    

     

Guess you like

Origin blog.csdn.net/weixin_38441229/article/details/132400470