react-native嵌入android原生

2017-04-01  本文已影响212人  我不是死胖子

react-native嵌入android原生

curl不是命令

conflict:jsr305

libreactnativejni.so

build.gradle添加
android{
    
    defaultConfig{
        ndk{
            abiFilters "armeabi-v7a","x86"
        }
        packagingOptions {
            exclude "lib/arm64-v8a/librealm-jni.so"
        }
    }
    
}

.v4.net.ConnectivityManagerCompat.()' is inaccessible to class 'com.f

Can't find variable: __fbBatchedBridge

undefined is not a function (evaluating '(bridgeConfig.remoteModuleConfig || []).forEach')

allprojects {
    repositories {
        jcenter()
        maven {
            // All of React Native (JS, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

改为

allprojects {
    repositories {
        jcenter()
        maven {
            // All of React Native (JS, Android binaries) is installed from npm
            url "$rootDir/node_modules/react-native/android"
        }
    }
}
上一篇下一篇

猜你喜欢

热点阅读