Giter Site home page Giter Site logo

Comments (14)

GaurangShahaAppstute avatar GaurangShahaAppstute commented on May 22, 2024 1

For gradle lower than 2.11 I was getting peer not authenticated error when downloading with gradle. Able to add the library after updating gradle to 2.11. To update the version I changed to distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip in /gradle/gradle-wrapper.properties file.
Thanks @eneim for the direction and creating such great library. 👍

from toro.

eneim avatar eneim commented on May 22, 2024

Thanks for your interest. I made a change on your comment to make your code looks better.

Can you provide me some following information:

  • gradle version (from /gradle/gradle-wrapper.properties file)
  • Android Studio version
  • Which you prefer to use now: classpath 'com.android.tools.build:gradle:1.5.0' or classpath 'com.android.tools.build:gradle:2.0.0'.
  • And please check your internet connection too.

If you can run gradle task with option --info or --trace, please give me the error output.

from toro.

GaurangShahaAppstute avatar GaurangShahaAppstute commented on May 22, 2024
  • gradle version (from /gradle/gradle-wrapper.properties file) is 2.8

#Wed Oct 21 11:34:03 PDT 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip

  • Android Studio version is 1.5.1
  • I can use any of classpath 'com.android.tools.build:gradle:1.5.0' orclasspath 'com.android.tools.build:gradle:2.0.0'.
  • Also I was connected to internet.

from toro.

iamnitesh avatar iamnitesh commented on May 22, 2024

me also unable to add toro dependency here is my both Gradle files

// 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:2.2.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    ext {
        toroVersion = '2.1.0'
    }

    dependencies {

        // include in your module (app or library)
        // include only core Toro library
       // compile "im.ene.toro2:toro:${toroVersion}"

        // include extension for ExoPlayer v2 (Toro is included already)
        compile "im.ene.toro2:toro-ext-exoplayer2:${toroVersion}"
        // include extension for ExoPlayer v1 (Toro is included already)
        compile "im.ene.toro2:toro-ext-exoplayer:${toroVersion}"
        // include extension for Legacy MediaPlayer (Toro is included already)
        compile "im.ene.toro2:oro-ext-mediaplayer:${toroVersion}"

        // include Toro extended helper (Toro and ExoPlayer v2 extension is included already)
        compile "im.ene.toro2:toro-extended:${toroVersion}"
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

**and the second one is app level gradle

 `apply plugin: 'com.android.application'**


android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        applicationId "com.example.creativeinfoway2.playvideotesting"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.+'
    testCompile 'junit:junit:4.12'

}

hoping for quick response comes, thank you

from toro.

eneim avatar eneim commented on May 22, 2024

You must include dependencies inside app-level gradle file. Please see my demo app for reference.

from toro.

iamnitesh avatar iamnitesh commented on May 22, 2024

In demo point 3. HOW TO USE you have said Projects top level gradle. which is where I added dependency

from toro.

eneim avatar eneim commented on May 22, 2024

@iamnitesh Only add "jcenter()" there if you have not. The rest are added to module level dependencies.

from toro.

iamnitesh avatar iamnitesh commented on May 22, 2024

thanks for your response.it is working.

from toro.

eneim avatar eneim commented on May 22, 2024

Good to hear that :D

from toro.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on May 22, 2024

I followed the guide how to set the library, but i always have the following problem:

Error:Failed to resolve: im.ene.toro2:oro-ext-mediaplayer:2.1.0

here is the structure of the the top level build.gradle file

// 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:2.2.2'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://jitpack.io"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}```

from toro.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on May 22, 2024

Here is also the content of the app module build.gradle

apply plugin: 'com.android.application'


android {
    compileSdkVersion 25
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.toure.testingapp"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            res.srcDirs = [
                    'src/main/res',
                    'src/main/res/layouts',
                    'src/main/res/layouts/module_gesu',
                    'src/main/res/layouts/module_gcmq',
                    'src/main/res/layouts/module_gcpd',
                    'src/main/res/layouts/module_geqr',
                    'src/main/res/layouts/module_gmsg',
                    'src/main/res/layouts/module_gpub',
                    'src/main/res/layouts/module_gesretrait',
                    'src/main/res/layouts/module_gcgd',
                    'src/main/res/layouts/module_gnot'

            ]
        }
    }
}

ext {
    toroVersion = '2.1.0'
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.0.1'
    compile 'com.android.support:design:25.0.1'
    compile 'com.android.support:support-v4:25.0.1'
    compile 'com.github.ganfra:material-spinner:1.1.1'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.android.support:cardview-v7:25.0.1'
    compile 'com.github.h6ah4i:android-advancedrecyclerview:0.9.2'
    compile 'com.truizlop.sectionedrecyclerview:library:1.2.0'
    compile 'com.github.alex-townsend:SwipeOpenItemTouchHelper:1.2.1'
    compile 'dev.dworks.libs:volleyplus:+'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.github.satyan:sugar:1.5'
    compile 'com.iceteck.silicompressorr:silicompressor:1.1.0'
    compile "com.google.android.gms:play-services-gcm:9.6.1"
    compile 'com.google.firebase:firebase-messaging:9.6.1'

    /* Start of Toro dependencies */

    // include in your module (app or library)
    // include only core Toro library
    compile "im.ene.toro2:toro:${toroVersion}"

    // include extension for ExoPlayer v2 (Toro is included already)
    compile "im.ene.toro2:toro-ext-exoplayer2:${toroVersion}"
    // include extension for ExoPlayer v1 (Toro is included already)
    compile "im.ene.toro2:toro-ext-exoplayer:${toroVersion}"
    // include extension for Legacy MediaPlayer (Toro is included already)
    compile "im.ene.toro2:oro-ext-mediaplayer:${toroVersion}"

    // include Toro extended helper (Toro and ExoPlayer v2 extension is included already)
    compile "im.ene.toro2:toro-extended:${toroVersion}"

    /* End of Toro dependencies */

}
apply plugin: 'com.google.gms.google-services'

from toro.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on May 22, 2024

Please @eneim , hope to hear from you as soon as possible.

from toro.

eneim avatar eneim commented on May 22, 2024

@Tourenathan-G5organisation please use only the dependencies you need. And Exo1 and Exo2 CANNOT be used together. Please carefully read my REAME.

from toro.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on May 22, 2024

Ok, thanks for your help @eneim

from toro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.