Open Pranoy1c opened 8 years ago
+1
+1
I found it, you have to add this code in app/build.gradle
`android { ... defaultConfig { ... renderscriptTargetApi 20 renderscriptSupportModeEnabled true } }
repositories { maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' } }
dependencies { ... compile project(':react-native-blur') }
buildscript { repositories { maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' } } dependencies { classpath 'com.fivehundredpx:blurringview:1.0.0' } }`
first build.gradle :
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' }
url 'http://dl.bintray.com/amulyakhare/maven'
}
}
second build.gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "com.exemple.myapp"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.fivehundredpx:blurringview:1.0.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
repositories { maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' } }
dependencies { compile 'com.fivehundredpx:blurringview:1.0.0' }
I put:
in the gradle file but it says "
Failed to resolve: com.fivehundredpx:blurringview:1.0.0
"Am I doing something wrong?