-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build.gradle error for new react native version #198
Comments
code format
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its showing https insecure;
Please allow allowInsecureProtocol = true in build.gradle
and also modify the line compile word with implementation
Here is the fixed build.gradle file
buildscript {
repositories {
jcenter { url "http://jcenter.bintray.com/"; allowInsecureProtocol = true }
maven {url "http://repo.spring.io/plugins-release/"; allowInsecureProtocol = true}
mavenCentral()
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://maven.google.com'
}
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
}
repositories {
jcenter { url "http://jcenter.bintray.com/"; allowInsecureProtocol = true }
maven {url "http://repo.spring.io/plugins-release/"; allowInsecureProtocol = true}
mavenCentral()
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://maven.google.com'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation group: 'com.android.support', name: 'support-v4', version: '27.0.0'
implementation "com.google.zxing:core:3.3.0"
}
The text was updated successfully, but these errors were encountered: