wasabeef / picasso-transformations

An Android transformation library providing a variety of image transformations for Picasso
Apache License 2.0
1.69k stars 238 forks source link

unable to add from jcenter in android studio 1.3.2 #10

Closed ksy5662 closed 9 years ago

ksy5662 commented 9 years ago

Couldn't get this library from jcenter

Anything I missed here?

image

buildscript { repositories {

    mavenCentral()
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:1.3.0'
}

}

repositories { mavenCentral()

// for using SNAPSHOT
//maven {
//    url uri('https://oss.sonatype.org/content/repositories/snapshots/')
//}

}

apply plugin: 'com.android.application'

dependencies { compile project(':library') // Or, fetch from Maven: // compile 'com.google.maps.android:android-maps-utils:0.3+' compile 'com.android.support:support-v4:22.2.0' compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'org.jsoup:jsoup:1.8.2' compile 'jp.wasabeef:picasso-transformations:1.2.0' // If you want to use the GPU Filters //compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0' compile project(':appiraterAndroid') }

android { compileSdkVersion 22 buildToolsVersion "22.0.1"

defaultConfig {
    applicationId "com.teamhj.agriweather"
    minSdkVersion 16
    targetSdkVersion 21
    versionCode 1010
    versionName "1.0.10"
    renderscriptTargetApi 22
    renderscriptSupportModeEnabled true
}
buildTypes {

    debug {
        debuggable true
    }

    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        res.srcDirs = ['res']
    }
}

signingConfigs {
    debug {
        storeFile file('debug.keystore')
    }
}

}

task startDemo(type: Exec) { dependsOn 'installDebug' def adb = new File("${System.env.ANDROID_HOME}", "platform-tools${File.separator}adb") commandLine adb, "shell", "am", "start", "-n", "com.google.maps.android.utils.demo/.MainActivity" }

wasabeef commented 9 years ago

@ksy5662

try it.

buildscript {
  repositories {
    mavenCentral()
  }

  dependencies {
    classpath 'com.android.tools.build:gradle:1.3.0'
  }
}

allprojects {
  repositories {
    jcenter()                            /*** this one ***/
  }
}

or

repositories {
  mavenCentral()
  jcenter()                            /*** this one ***/
  // for using SNAPSHOT
  //maven {
  //    url uri('https://oss.sonatype.org/content/repositories/snapshots/')
  //}
}
ksy5662 commented 9 years ago

repositories outside of build script works!!

Thanks a lot for your great work!!

wasabeef commented 9 years ago

:shipit: