techery / ProperRatingBar

Inspired by stock android RatingBar. Simpler, has features that original lacks.
409 stars 70 forks source link

Latest version is not usable via jitpack #23

Closed pishguy closed 8 years ago

pishguy commented 8 years ago

hi, i'm trying to install this library on gradle repository, but i get this error:

Error:Could not find com.github.techery:ProperRatingBar:0.0.4.
Required by:
    SignalPresentationProject:app:unspecified
<a href="searchInBuildFiles">Search in build.gradle files</a>
Den-Rimus commented 8 years ago

Please try now

pishguy commented 8 years ago

could not find;

my project gradle content:

project.ext.sdkVersion = 23
project.ext.buildTools = '23.0.0'

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

allprojects {

    buildscript {
        repositories {
            mavenLocal()
            jcenter()
            maven { url 'https://jitpack.io' }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.1.2'
            classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
            classpath 'com.github.JakeWharton:sdk-manager-plugin:0ce4cdf08009d79223850a59959d9d6e774d0f77'
            classpath 'com.novoda:gradle-android-command-plugin:1.5.0'
            classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
            classpath "io.realm:realm-gradle-plugin:1.0.0"
        }
    }

    repositories {
        mavenLocal()
        jcenter()
    }
}

and my app.gradle :

apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'android-command'
apply plugin: 'realm-android'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "ir.pishguy.signalpresentationproject"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    command {
        events 2000
    }
    lintOptions {
        disable 'InvalidPackage'
    }
    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
    }
}

ext {
    supportLibVersion = '23.4.0'
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile "com.android.support:appcompat-v7:${supportLibVersion}"
    compile "com.android.support:support-v4:${supportLibVersion}"
    compile "com.android.support:design:${supportLibVersion}"
    compile "com.android.support:cardview-v7:${supportLibVersion}"

    compile 'com.squareup.okhttp3:okhttp:3.3.1'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.5'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile('io.socket:socket.io-client:0.7.0')
            {
                // excluding org.json which is provided by Android
                exclude group: "org.json", module: "json"
            }

    compile ('com.squareup.retrofit2:retrofit:2.0.2'){
        exclude module:'okhttp'
    }
    compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
    compile 'com.squareup.okhttp3:okhttp:3.3.1'
    compile 'com.google.code.gson:gson:2.6.2'
    compile 'com.github.devlight.navigationtabbar:library:+'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile "de.hdodenhof:circleimageview:2.0.0"
    compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
    compile "com.balysv:material-ripple:1.0.2"
    compile 'com.github.traex.rippleeffect:library:1.3'
    compile 'com.github.chyrta:AndroidOnboarder:+'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.github.lamydev:android-notification:3.0'
    compile 'com.klinkerapps:sliding-activity:1.3.2'
    compile 'com.github.techery:ProperRatingBar:0.0.5'
}
Den-Rimus commented 8 years ago

The only difference I see is that jitpack repository is registered in project's build.gradle file, not in app module's.

Try that way

pishguy commented 8 years ago

I'm sorry sir. you mean is adding maven { url 'https://jitpack.io' } to app.gradle? could you fix that? please

Den-Rimus commented 8 years ago

yes

Den-Rimus commented 8 years ago

How is it going?

pishguy commented 8 years ago

I could not install your library on my project. can you fix my app.gradle?

Den-Rimus commented 8 years ago

Strange - our project is still using 0.0.4 and it's working. Changing version to 0.0.5 shows same error as you pointed.

I don't have time resources allocated to fix this now, meanwhile you can use 0.0.4 if there are no critical features in 0.0.5 for you.

Den-Rimus commented 8 years ago

@tux-world please follow this link and do exactly as it says - for me this worked.

E.g. your project build.gradle file will look like this:

project.ext.sdkVersion = 23
project.ext.buildTools = '23.0.0'

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

allprojects {

    buildscript {
        repositories {
            mavenLocal()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.1.2'
            classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
            classpath 'com.github.JakeWharton:sdk-manager-plugin:0ce4cdf08009d79223850a59959d9d6e774d0f77'
            classpath 'com.novoda:gradle-android-command-plugin:1.5.0'
            classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
            classpath "io.realm:realm-gradle-plugin:1.0.0"
        }
    }

    repositories {
        mavenLocal()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

and your app's module build.gradle file - like this:

apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'android-command'
apply plugin: 'realm-android'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "ir.pishguy.signalpresentationproject"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    command {
        events 2000
    }
    lintOptions {
        disable 'InvalidPackage'
    }
    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
    }
}

ext {
    supportLibVersion = '23.4.0'
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile "com.android.support:appcompat-v7:${supportLibVersion}"
    compile "com.android.support:support-v4:${supportLibVersion}"
    compile "com.android.support:design:${supportLibVersion}"
    compile "com.android.support:cardview-v7:${supportLibVersion}"

    compile 'com.squareup.okhttp3:okhttp:3.3.1'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.5'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile('io.socket:socket.io-client:0.7.0')
            {
                // excluding org.json which is provided by Android
                exclude group: "org.json", module: "json"
            }

    compile ('com.squareup.retrofit2:retrofit:2.0.2'){
        exclude module:'okhttp'
    }
    compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
    compile 'com.squareup.okhttp3:okhttp:3.3.1'
    compile 'com.google.code.gson:gson:2.6.2'
    compile 'com.github.devlight.navigationtabbar:library:+'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile "de.hdodenhof:circleimageview:2.0.0"
    compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
    compile "com.balysv:material-ripple:1.0.2"
    compile 'com.github.traex.rippleeffect:library:1.3'
    compile 'com.github.chyrta:AndroidOnboarder:+'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.github.lamydev:android-notification:3.0'
    compile 'com.klinkerapps:sliding-activity:1.3.2'
    compile 'com.github.techery:ProperRatingBar:0.0.5'
}
pishguy commented 8 years ago

@Den-Rimus not working sir, and could not find again

Den-Rimus commented 8 years ago

Can't help you any further as for me proposed changes worked and issues does not reproduce anymore. Unless you can share link to your code posted to some repo...