Coder Social home page Coder Social logo

Comments (15)

Fleker avatar Fleker commented on July 24, 2024 6

This is how I currently have the project included in a build.gradle:

// TV Input Framework
implementation('com.google.android.libraries.tv:companionlibrary:0.2') {
    exclude group: "com.google.ads.interactivemedia.v3"
    exclude group: "com.google.android.gms"
    exclude group: "com.android.support"
}

I do have more modernization on the way.

from androidtv-sample-inputs.

heitorri avatar heitorri commented on July 24, 2024 4

Hi,
Only put the code in my gradle:

packagingOptions { exclude 'error_prone/Annotations.gwt.xml' exclude 'third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml' exclude 'third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml' exclude 'jsr305_annotations/Jsr305_annotations.gwt.xml' }

from androidtv-sample-inputs.

ralphgabrielle avatar ralphgabrielle commented on July 24, 2024 1

Anyone use this and got it working ? There seems to be a problem with this Repository.

Also @integer/google_play_services_version file is missing

For Update :

packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
        exclude 'META-INF/rxjava.properties'

        exclude 'error_prone/Annotations.gwt.xml'

        exclude 'third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml'
        exclude 'third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml'
        exclude 'third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml'
        exclude 'jsr305_annotations/Jsr305_annotations.gwt.xml'
    }

from androidtv-sample-inputs.

Fleker avatar Fleker commented on July 24, 2024

What other imports are you using in your project? Is there a reason you're using implementation over compile? What happens if you use version 0.1?

from androidtv-sample-inputs.

clhols avatar clhols commented on July 24, 2024

I am using:

    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"

    implementation 'com.google.android.libraries.tv:companionlibrary:0.2'

    implementation 'com.google.android.exoplayer:exoplayer:r2.5.1'
    //implementation project(':exoplayer-lib')
    //implementation project(':exoplayer-library')

    implementation 'org.jetbrains.anko:anko-sdk15:0.10.1'
    implementation 'com.github.bumptech.glide:glide:4.2.0'
    implementation "com.github.bumptech.glide:okhttp3-integration:4.2.0"
    implementation 'com.squareup.okhttp3:okhttp:3.9.0'
    implementation "com.android.support:design:$supportLibVersion"
    implementation "com.android.support:support-v4:$supportLibVersion"
    implementation "com.android.support:recyclerview-v7:$supportLibVersion"
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation "com.google.android.gms:play-services-gcm:$playServicesVersion"

    implementation 'android.arch.lifecycle:extensions:1.0.0'
    implementation 'android.arch.lifecycle:reactivestreams:1.0.0'
    annotationProcessor 'android.arch.lifecycle:compiler:1.0.0'

    implementation 'io.reactivex.rxjava2:rxjava:2.1.2'
    implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0'
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

I stopped using compile when Gradle introduced implementation and api:
https://docs.gradle.org/current/userguide/java_library_plugin.html

The 0.1 version has the same issue.

I have now copied the library module and removed the AdController and dependency on com.google.ads.interactivemedia.v3:interactivemedia. Now it works much better.

from androidtv-sample-inputs.

Fleker avatar Fleker commented on July 24, 2024

Looks like the lib is using a pretty old version of Google Play Services which may cause a conflict with the newer version. Perhaps there needs to be some dependency updates to the lib overall.

from androidtv-sample-inputs.

SohailZahidGit avatar SohailZahidGit commented on July 24, 2024

@Fleker is your issue solved just by Updating google Play Service?

from androidtv-sample-inputs.

SohailZahidGit avatar SohailZahidGit commented on July 24, 2024

@Fleker My problem solved just by replacing jar files with their gradle versions.

from androidtv-sample-inputs.

Tripati avatar Tripati commented on July 24, 2024

In my app, I was adding the jar dependencies like this:

implementation files('libs/json-simple-1.1.1.jar')
But I realised that they were already added because of the following first line in dependencies:

implementation fileTree(include: ['*.jar'], dir: 'libs')
This line adds all the jars in lib folder to app dependency.

Hence after removing the extra dependency implementation files('libs/json-simple-1.1.1.jar')

it is working fine.

from androidtv-sample-inputs.

AlbertEinsteinGlitchPoint avatar AlbertEinsteinGlitchPoint commented on July 24, 2024

hi guys i am having the same issue compiling it on android studio build gradle 3.1.0

and having the same error but ralphgabrielle solution did not owrk form me

from androidtv-sample-inputs.

jackykarma avatar jackykarma commented on July 24, 2024

I have change playServicesVersion = '18.1.1' version from 12.0.0 to 18.1.1, it works.

from androidtv-sample-inputs.

sanudatta11 avatar sanudatta11 commented on July 24, 2024

So whats the final solution for this ?

from androidtv-sample-inputs.

manojitballav avatar manojitballav commented on July 24, 2024

Adding @heitorri solution to build.gradle (Module: app) fixes the problem

from androidtv-sample-inputs.

heitorri avatar heitorri commented on July 24, 2024

I will open a pull request for this :D

from androidtv-sample-inputs.

ritchieg9 avatar ritchieg9 commented on July 24, 2024

This solve my problem
implementation('com.google.android.libraries.tv:companionlibrary:0.4.1') {
exclude group: "com.google.android.gms"
}

from androidtv-sample-inputs.

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.