美文网首页
react-native-camera android 报错

react-native-camera android 报错

作者: ablac | 来源:发表于2018-06-26 09:07 被阅读47次

vpn 确保能够下载到react-native-camera

修改build.gradle为

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven { url "https://jitpack.io" }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}

同步 rebuild

检查gradle和MainApplication中是否已经引入reac-native-camera的相关pakage

相关文章

网友评论

      本文标题:react-native-camera android 报错

      本文链接:https://www.haomeiwen.com/subject/bxkpyftx.html