Comments (15)
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.
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.
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.
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.
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.
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.
@Fleker is your issue solved just by Updating google Play Service?
from androidtv-sample-inputs.
@Fleker My problem solved just by replacing jar files with their gradle versions.
from androidtv-sample-inputs.
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.
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.
I have change playServicesVersion = '18.1.1' version from 12.0.0 to 18.1.1, it works.
from androidtv-sample-inputs.
So whats the final solution for this ?
from androidtv-sample-inputs.
Adding @heitorri solution to build.gradle (Module: app) fixes the problem
from androidtv-sample-inputs.
I will open a pull request for this :D
from androidtv-sample-inputs.
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)
- AAPT: error: resource android:attr/fontVariationSettings not found. HOT 1
- package com.google.android.exoplayer.metadata.id3 not found HOT 1
- Overlay not showing on API 28 HOT 4
- Live channels -> Rich Input -> After scan and click finish it , it says No channels Available HOT 2
- Unable to buil sample HOT 4
- How to run the sample on Android TV Emulator? HOT 1
- How to run dvb from coax cable? HOT 1
- More than one file was found with OS independent path 'error_prone/Annotations.gwt.xml' HOT 1
- Live Channels with no audio (onSetStreamVolume gets volume = 0)
- Delete Wrong Issue CLosed
- Cannot be identified as a source HOT 2
- Not a channel: null on Philips TVs
- Not working Google TV
- Migrate to Maven Central
- create record file on 'onStopRecording' method
- Migrate to androidx HOT 1
- Code is old?? HOT 3
- Code is Too old HOT 3
- Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @6e37e88f
- Deprecated?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidtv-sample-inputs.