Hi, Everyone, I'm trying to load VASTAdsComponetns in the fire tv app project when I add the components and run/build the project I got the error below. Please share your experience on how to fix this.
Error
Circular dependency between the following tasks:
:VastAdsComponent:generateDebugRFile
\--- :VastAdsComponent:generateDebugRFile (*)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
You can also check the image below.
And I'm using Setting.Gradle (Application)
include ':app', /* Frameworks */ ':TVUIComponent', ':UAMP', /* Libraries */ ':Calligraphy', ':ContentModel', ':ContentBrowser', ':DynamicParser', ':DataLoader', ':Utils', // Uncomment when using ComScore Analytics //':comscore', /* Interfaces */ ':PurchaseInterface', ':AuthInterface', ':AdsInterface', ':AnalyticsInterface', ':ModuleInterface', /* Implementations */ ':VastAdsComponent', ':AMZNMediaPlayerComponent', ':PassThroughLoginComponent', ':LoggerAnalyticsComponent' /* Frameworks */ project(':TVUIComponent').projectDir = new File(rootProject.projectDir, '../TVUIComponent/lib') project(':UAMP').projectDir = new File(rootProject.projectDir, '../UAMP') /* Libraries */ project(':Calligraphy').projectDir = new File(rootProject.projectDir, '../TVUIComponent/Calligraphy') project(':ContentModel').projectDir = new File(rootProject.projectDir, '../ContentModel') project(':ContentBrowser').projectDir = new File(rootProject.projectDir, '../ContentBrowser') project(':DynamicParser').projectDir = new File(rootProject.projectDir, '../DynamicParser') project(':DataLoader').projectDir = new File(rootProject.projectDir, '../DataLoader') project(':Utils').projectDir = new File(rootProject.projectDir, '../Utils') /* Interfaces*/ project(':ModuleInterface').projectDir = new File(rootProject.projectDir, '../ModuleInterface') project(':AdsInterface').projectDir = new File(rootProject.projectDir, '../AdsInterface') project(':AuthInterface').projectDir = new File(rootProject.projectDir, '../AuthInterface') project(':AnalyticsInterface').projectDir = new File(rootProject.projectDir, '../AnalyticsInterface') project(':PurchaseInterface').projectDir = new File(rootProject.projectDir, '../PurchaseInterface') /* Implementations */ project(':AMZNMediaPlayerComponent').projectDir = new File(rootProject.projectDir, '../AMZNMediaPlayerComponent') project(':VastAdsComponent').projectDir = new File(rootProject.projectDir, '../VastAdsComponent') project(':PassThroughLoginComponent').projectDir = new File(rootProject.projectDir, '../PassThroughLoginComponent') project(':LoggerAnalyticsComponent').projectDir = new File(rootProject.projectDir, '../LoggerAnalyticsComponent') // Uncomment when using ComScore Analytics //project(':comscore').projectDir = new File(rootProject.projectDir, '../ComScoreAnalyticsComponent/libs/comscore')
While build.gradle(:app)
apply plugin: 'com.android.application' //apply plugin: 'me.tatarka.retrolambda' // Uncomment when using CrashlyticsComponent //apply plugin: 'io.fabric' apply from: "../artifacts.gradle" repositories { // Uncomment when using CrashlyticsComponent //maven { url 'https://maven.fabric.io/public' } } buildscript { repositories { jcenter() // Uncomment when using CrashlyticsComponent //maven { url 'https://maven.fabric.io/public' } } dependencies { //classpath 'me.tatarka:gradle-retrolambda:3.2.3' // Uncomment when using CrashlyticsComponent //classpath 'io.fabric.tools:gradle:1.+' } } android { compileSdkVersion 23 buildToolsVersion '28.0.2' defaultConfig { applicationId "com.ottdev.firetvtutorials" minSdkVersion 21 //noinspection ExpiredTargetSdkVersion targetSdkVersion 23 versionCode 10 versionName "1.0.7" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { testCoverageEnabled = true } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } // this is for jackson packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory' exclude 'META-INF/services/com.fasterxml.jackson.core.ObjectCodec' exclude 'META-INF/rxjava.properties' } lintOptions { abortOnError false } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile 'junit:junit:4.12' androidTestCompile 'org.mockito:mockito-core:1.9.5' androidTestCompile ('com.android.support.test:rules:0.5') { exclude group: 'com.android.support', module: 'support-annotations' } androidTestCompile ('com.android.support.test:runner:0.5') { exclude group: 'com.android.support', module: 'support-annotations' } androidTestCompile 'com.google.dexmaker:dexmaker:1.2' androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2' androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.3.1' compile project(':TVUIComponent') compile project(':UAMP') compile project(':AMZNMediaPlayerComponent') compile project(':VastAdsComponent') compile project(':PassThroughLoginComponent') compile project(':LoggerAnalyticsComponent') }