500px / 500px-android-blur

Android Blurring View
http://developers.500px.com/2015/03/17/a-blurring-view-for-android.html
MIT License
2.69k stars 326 forks source link

Gradle: Failed to resolve: com.fivehundredpx:blurringview:1.0.0 #26

Open Pranoy1c opened 8 years ago

Pranoy1c commented 8 years ago

I put:

dependencies {
    compile 'com.fivehundredpx:blurringview:1.0.0'
}

in the gradle file but it says "Failed to resolve: com.fivehundredpx:blurringview:1.0.0"

Am I doing something wrong?

noerK commented 8 years ago

+1

AnisDerbel commented 8 years ago

+1

AnisDerbel commented 8 years ago

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' } }`

MSay2 commented 7 years ago

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'])
}
tabassumLatif commented 7 years ago

repositories { maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' } }

dependencies { compile 'com.fivehundredpx:blurringview:1.0.0' }