kandi background
Explore Kits

DiskLruCache | Java implementation of a Diskbased LRU cache | Caching library

 by   JakeWharton Java Version: Current License: Apache-2.0

 by   JakeWharton Java Version: Current License: Apache-2.0

Download this library from

kandi X-RAY | DiskLruCache Summary

DiskLruCache is a Java library typically used in Server, Caching applications. DiskLruCache has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.
a cache that uses a bounded amount of space on a filesystem. each cache entry has a string key and a fixed number of values. each key must match the regex [a-z0-9_-]{1,120}. values are byte sequences, accessible as streams or files. each value must be between 0 and integer.max_value bytes in length. the cache stores its data in a directory on the filesystem. this directory must be exclusive to the cache; the cache may delete or overwrite files from its directory. it is an error for multiple processes to use the same cache directory at the same time. this cache limits the number of bytes that it will store on the filesystem. when the number of stored bytes exceeds the limit, the cache will remove entries in the background until the limit is satisfied. the limit is not strict: the cache may temporarily exceed it while waiting for files to be deleted. the limit does not include filesystem overhead or the cache journal so
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • DiskLruCache has a medium active ecosystem.
  • It has 5583 star(s) with 1176 fork(s). There are 267 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 17 open issues and 37 have been closed. On average issues are closed in 106 days. There are 4 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of DiskLruCache is current.
DiskLruCache Support
Best in #Caching
Average in #Caching
DiskLruCache Support
Best in #Caching
Average in #Caching

quality kandi Quality

  • DiskLruCache has 0 bugs and 0 code smells.
DiskLruCache Quality
Best in #Caching
Average in #Caching
DiskLruCache Quality
Best in #Caching
Average in #Caching

securitySecurity

  • DiskLruCache has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • DiskLruCache code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
DiskLruCache Security
Best in #Caching
Average in #Caching
DiskLruCache Security
Best in #Caching
Average in #Caching

license License

  • DiskLruCache is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
DiskLruCache License
Best in #Caching
Average in #Caching
DiskLruCache License
Best in #Caching
Average in #Caching

buildReuse

  • DiskLruCache releases are not available. You will need to build from source code and install.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • DiskLruCache saves you 834 person hours of effort in developing the same functionality from scratch.
  • It has 1912 lines of code, 140 functions and 7 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
DiskLruCache Reuse
Best in #Caching
Average in #Caching
DiskLruCache Reuse
Best in #Caching
Average in #Caching
Top functions reviewed by kandi - BETA

kandi has reviewed DiskLruCache and discovered the below as its top functions. This is intended to give you an instant insight into DiskLruCache implemented functionality, and help decide if they suit your requirements.

  • Completes an edit .
  • Read a line from the input stream .
  • Opens a cache .
  • Gets the snapshot with the given key .
  • Read the journal file .
  • Deletes the contents of a directory .
  • Fills the reader with the given reader .
  • Closes a Closeable .
  • Fills the buffer .
  • Closes the underlying input stream .

DiskLruCache Key Features

When an entry is being created it is necessary to supply a full set of values; the empty value should be used as a placeholder if necessary.

When an entry is being edited, it is not necessary to supply data for every value; values default to their previous value.

Download

copy iconCopydownload iconDownload
<dependency>
  <groupId>com.jakewharton</groupId>
  <artifactId>disklrucache</artifactId>
  <version>2.0.2</version>
</dependency>

License

copy iconCopydownload iconDownload
Copyright 2012 Jake Wharton
Copyright 2011 The Android Open Source Project

Error: Program type already present: androidx.asynclayoutinflater.R

copy iconCopydownload iconDownload
implementation 'com.segment.analytics.android.integrations:firebase:1.3.1'
implementation 'com.segment.analytics.android.integrations:firebase:1.3.1@aar'
-----------------------
implementation 'com.segment.analytics.android.integrations:firebase:1.3.1'
implementation 'com.segment.analytics.android.integrations:firebase:1.3.1@aar'

Gradle mixing versions 27.1.1 and 26.1.0

copy iconCopydownload iconDownload
+--- com.android.support:customtabs:26.1.0
implementation 'com.android.support:customtabs:27.1.1'
-----------------------
+--- com.android.support:customtabs:26.1.0
implementation 'com.android.support:customtabs:27.1.1'

Program type already present : gradle build error

copy iconCopydownload iconDownload
compile("com.vdopia.ads.lw:coresdk:2.5.3.3") { exclude group: 'com.nostra13.universalimageloader' }

Library class (from Android sdk) depends on program class (again, Android sdk)

copy iconCopydownload iconDownload
-dontwarn android.**
+--- com.foursquare:foursquare-android-oauth:1.0.3
|    \--- com.google.android:android:4.1.1.4
|         +--- commons-logging:commons-logging:1.1.1
|         +--- org.apache.httpcomponents:httpclient:4.0.1
|         |    +--- org.apache.httpcomponents:httpcore:4.0.1
|         |    +--- commons-logging:commons-logging:1.1.1
|         |    \--- commons-codec:commons-codec:1.3
|         +--- org.khronos:opengl-api:gl1.1-android-2.1_r1
|         +--- xerces:xmlParserAPIs:2.6.2
|         +--- xpp3:xpp3:1.1.4c
|         \--- org.json:json:20080701
implementation ('com.foursquare:foursquare-android-oauth:1.0.3'){
        exclude group: 'com.google.android'
}
-----------------------
-dontwarn android.**
+--- com.foursquare:foursquare-android-oauth:1.0.3
|    \--- com.google.android:android:4.1.1.4
|         +--- commons-logging:commons-logging:1.1.1
|         +--- org.apache.httpcomponents:httpclient:4.0.1
|         |    +--- org.apache.httpcomponents:httpcore:4.0.1
|         |    +--- commons-logging:commons-logging:1.1.1
|         |    \--- commons-codec:commons-codec:1.3
|         +--- org.khronos:opengl-api:gl1.1-android-2.1_r1
|         +--- xerces:xmlParserAPIs:2.6.2
|         +--- xpp3:xpp3:1.1.4c
|         \--- org.json:json:20080701
implementation ('com.foursquare:foursquare-android-oauth:1.0.3'){
        exclude group: 'com.google.android'
}
-----------------------
-dontwarn android.**
+--- com.foursquare:foursquare-android-oauth:1.0.3
|    \--- com.google.android:android:4.1.1.4
|         +--- commons-logging:commons-logging:1.1.1
|         +--- org.apache.httpcomponents:httpclient:4.0.1
|         |    +--- org.apache.httpcomponents:httpcore:4.0.1
|         |    +--- commons-logging:commons-logging:1.1.1
|         |    \--- commons-codec:commons-codec:1.3
|         +--- org.khronos:opengl-api:gl1.1-android-2.1_r1
|         +--- xerces:xmlParserAPIs:2.6.2
|         +--- xpp3:xpp3:1.1.4c
|         \--- org.json:json:20080701
implementation ('com.foursquare:foursquare-android-oauth:1.0.3'){
        exclude group: 'com.google.android'
}
-----------------------
-dontwarn android.**
com.github.tony19:logback-android-core
-----------------------
-dontwarn android.**
com.github.tony19:logback-android-core

Data Binding plugin uses old version of Support library

copy iconCopydownload iconDownload
  implementation "com.android.support:support-v4:26.0.2"
-----------------------
android {
...
    configurations.all {
            resolutionStrategy.force "com.android.support:support-v4:${supportLib}"
            resolutionStrategy.force "com.android.support:appcompat-v7:${supportLib}"
            resolutionStrategy.force "com.android.support:design:${supportLib}"
            resolutionStrategy.force "com.android.support:recyclerview-v7:${supportLib}"
            resolutionStrategy.force "android.arch.lifecycle:runtime:${lifecycleExtensions}"
        }
}

I am getting gradle error Execution failed for task

copy iconCopydownload iconDownload
compile files('libs/volley.jar')
compile files('libs/google-gson.jar')
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.android.gms:play-services-auth:11.4.0'
-----------------------
compile files('libs/volley.jar')
compile files('libs/google-gson.jar')
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.android.gms:play-services-auth:11.4.0'
-----------------------
 compile files('libs/volley.jar') // From local lib also
compile 'com.android.volley:volley:1.0.0'
-----------------------
 compile files('libs/volley.jar') // From local lib also
compile 'com.android.volley:volley:1.0.0'

When I try to generate app, following error produce

copy iconCopydownload iconDownload
compile 'com.google.android.gms:play-services-ads:11.0.2'
compile 'com.google.android.gms:play-services-basement:11.0.2' 
compile 'com.google.android.gms:play-services-location:11.0.2' 
-----------------------
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:appcompat-v7:26.+'
-----------------------
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:appcompat-v7:26.+'
-----------------------
+--- com.adobe.creativesdk:image:4.8.4
|    +--- com.google.android.gms:play-services-gcm:9.4.0 // conflict here
|    |    +--- com.google.android.gms:play-services-base:9.4.0 -> 11.0.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.4.0 -> 11.0.1 (*)
|    |    \--- com.google.android.gms:play-services-iid:9.4.0 // conflict here
|    |         +--- com.google.android.gms:play-services-base:9.4.0 -> 11.0.1 (*)
|    |         \--- com.google.android.gms:play-services-basement:9.4.0 -> 11.0.1 (*)
-----------------------
  compile 'com.google.android.gms:play-services-ads-lite:10.2.0'
  compile 'com.google.android.gms:play-services-basement:10.2.0'
  compile 'com.google.android.gms:play-services-location:10.2.0' 
classpath 'com.google.gms:google-services:3.1.0'
-----------------------
  compile 'com.google.android.gms:play-services-ads-lite:10.2.0'
  compile 'com.google.android.gms:play-services-basement:10.2.0'
  compile 'com.google.android.gms:play-services-location:10.2.0' 
classpath 'com.google.gms:google-services:3.1.0'

Several new Proguard issues Google Play services v10.2.6 to v11.0.0 in a Multidex project

copy iconCopydownload iconDownload
-keep class com.google.android.gms.**
-dontwarn com.google.android.gms.**

Community Discussions

Trending Discussions on DiskLruCache
  • Error: Program type already present: androidx.asynclayoutinflater.R
  • How to cache Firebase storage downloaded images
  • Accessing cached Images from LruCache Implementation
  • Android crashing after trying to build a release version
  • Gradle mixing versions 27.1.1 and 26.1.0
  • Program type already present : gradle build error
  • Library class (from Android sdk) depends on program class (again, Android sdk)
  • Data Binding plugin uses old version of Support library
  • Multiple dex files define Lorg/apache/commons/io/IOUtils;
  • I am getting gradle error Execution failed for task
Trending Discussions on DiskLruCache

QUESTION

Error: Program type already present: androidx.asynclayoutinflater.R

Asked 2020-Jan-15 at 20:19

I've tried upgrading my facebook sdk my app was using to the latest version (5.1.1), and it somehow took me down a rabbit hole of migrating my project to AndroidX. After doing the migration and ironing out some gradle issues, I now have a build issue Error: Program type already present: androidx.asynclayoutinflater.R

I've been trying to resolve my problem using this answer and other variants of it but Im finding it difficult to find which libraries are using androidx.asynclayoutinflater.R

when i dump out my dependancies i get this

+--- androidx.databinding:databinding-adapters:3.4.2@aar
+--- androidx.databinding:databinding-runtime:3.4.2@aar
+--- androidx.databinding:databinding-common:3.4.2@jar
+--- androidx.emoji:emoji-appcompat:1.0.0@aar
+--- com.codewaves.stickyheadergrid:stickyheadergrid:0.9.6@aar
+--- com.google.android.material:material:1.0.0@aar
+--- com.kishan.askpermission:askpermission:1.0.3@aar
+--- com.theartofdev.edmodo:android-image-cropper:2.8.0@aar
+--- uk.co.chrisjenx:calligraphy:2.3.0@aar
+--- com.facebook.android:facebook-android-sdk:5.1.1@aar
+--- com.facebook.android:facebook-login:5.1.1@aar
+--- com.facebook.android:facebook-share:5.1.1@aar
+--- com.facebook.android:facebook-common:5.1.1@aar
+--- androidx.appcompat:appcompat:1.0.2@aar
+--- androidx.browser:browser:1.0.0@aar
+--- androidx.cardview:cardview:1.0.0@aar
+--- androidx.constraintlayout:constraintlayout:1.1.3@aar
+--- androidx.gridlayout:gridlayout:1.0.0@aar
+--- androidx.legacy:legacy-support-v13:1.0.0@aar
+--- androidx.legacy:legacy-support-v4:1.0.0@aar
+--- com.andkulikov:transitionseverywhere:1.8.0@aar
+--- com.google.firebase:firebase-messaging:19.0.1@aar
+--- com.google.firebase:firebase-perf:18.0.1@aar
+--- com.github.bumptech.glide:glide:4.8.0@aar
+--- com.google.firebase:firebase-config:18.0.0@aar
+--- com.segment.analytics.android.integrations:firebase:1.3.1@jar
+--- com.google.firebase:firebase-core:17.0.1@aar
+--- com.google.firebase:firebase-analytics:17.0.0@aar
+--- com.google.android.gms:play-services-measurement-api:17.0.0@aar
+--- com.google.firebase:firebase-iid:19.0.1@aar
+--- com.google.firebase:firebase-abt:18.0.0@aar
+--- com.google.firebase:firebase-common:18.0.0@aar
+--- com.google.android.gms:play-services-clearcut:17.0.0@aar
+--- com.google.android.gms:play-services-phenotype:17.0.0@aar
+--- com.google.firebase:firebase-iid-interop:17.0.0@aar
+--- com.google.android.gms:play-services-base:17.0.0@aar
+--- com.google.android.gms:play-services-tasks:17.0.0@aar
+--- com.google.firebase:firebase-measurement-connector:18.0.0@aar
+--- com.google.android.gms:play-services-measurement:17.0.0@aar
+--- com.google.android.gms:play-services-measurement-sdk:17.0.0@aar
+--- com.google.android.gms:play-services-measurement-impl:17.0.0@aar
+--- com.google.android.gms:play-services-stats:17.0.0@aar
+--- com.google.android.gms:play-services-measurement-sdk-api:17.0.0@aar
+--- com.google.android.gms:play-services-measurement-base:17.0.0@aar
+--- com.google.android.gms:play-services-ads-identifier:17.0.0@aar
+--- com.google.android.gms:play-services-basement:17.0.0@aar
+--- androidx.fragment:fragment:1.0.0@aar
+--- androidx.vectordrawable:vectordrawable-animated:1.0.0@aar
+--- ca.barrenechea.header-decor:header-decor:0.2.8@aar
+--- androidx.recyclerview:recyclerview:1.0.0@aar
+--- androidx.legacy:legacy-support-core-ui:1.0.0@aar
+--- com.facebook.android:facebook-places:5.1.1@aar
+--- com.facebook.android:facebook-applinks:5.1.1@aar
+--- com.facebook.android:facebook-messenger:5.1.1@aar
+--- com.facebook.android:facebook-core:5.1.1@aar
+--- androidx.legacy:legacy-support-core-utils:1.0.0@aar
+--- androidx.vectordrawable:vectordrawable:1.0.1@aar
+--- androidx.emoji:emoji-bundled:1.0.0@aar
+--- androidx.emoji:emoji:1.0.0@aar
+--- androidx.media:media:1.0.0@aar
+--- androidx.transition:transition:1.0.0@aar
+--- androidx.loader:loader:1.0.0@aar
+--- androidx.viewpager:viewpager:1.0.0@aar
+--- androidx.coordinatorlayout:coordinatorlayout:1.0.0@aar
+--- androidx.drawerlayout:drawerlayout:1.0.0@aar
+--- androidx.slidingpanelayout:slidingpanelayout:1.0.0@aar
+--- androidx.customview:customview:1.0.0@aar
+--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0@aar
+--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0@aar
+--- androidx.core:core:1.0.2@aar
+--- androidx.multidex:multidex:2.0.1@aar
+--- com.anjlab.android.iab.v3:library:1.0.44@jar
+--- com.appsflyer:segment-android-integration:1.18@aar
+--- com.segment.analytics.android.integrations:mixpanel:2.1.0@jar
+--- com.segment.analytics.android:analytics:4.4.0-beta1@jar
+--- com.squareup.okhttp3:logging-interceptor:3.12.0@jar
+--- com.squareup.retrofit2:converter-gson:2.5.0@jar
+--- com.squareup.retrofit2:retrofit:2.5.0@jar
+--- io.branch.sdk.android:library:2.19.5@aar
+--- joda-time:joda-time:2.10.1@jar
+--- me.leolin:ShortcutBadger:1.1.21@aar
+--- me.relex:circleindicator:1.2.2@aar
+--- org.greenrobot:eventbus:3.1.1@jar
+--- se.emilsjolander:StickyScrollViewItems:1.1.0@aar
+--- com.crashlytics.sdk.android:crashlytics:2.7.1@aar
+--- androidx.test.espresso:espresso-idling-resource:3.2.0@aar
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.31@jar
+--- com.jakewharton.rxbinding:rxbinding:0.3.0@aar
+--- androidx.lifecycle:lifecycle-runtime:2.0.0@aar
+--- androidx.versionedparcelable:versionedparcelable:1.0.0@aar
+--- androidx.collection:collection:1.0.0@jar
+--- androidx.cursoradapter:cursoradapter:1.0.0@aar
+--- androidx.interpolator:interpolator:1.0.0@aar
+--- com.github.bumptech.glide:gifdecoder:4.8.0@aar
+--- androidx.exifinterface:exifinterface:1.0.0@aar
+--- androidx.lifecycle:lifecycle-livedata:2.0.0@aar
+--- androidx.lifecycle:lifecycle-livedata-core:2.0.0@aar
+--- androidx.lifecycle:lifecycle-common:2.0.0@jar
+--- androidx.arch.core:core-runtime:2.0.0@aar
+--- androidx.arch.core:core-common:2.0.0@jar
+--- androidx.documentfile:documentfile:1.0.0@aar
+--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0@aar
+--- androidx.print:print:1.0.0@aar
+--- androidx.lifecycle:lifecycle-viewmodel:2.0.0@aar
+--- androidx.annotation:annotation:1.0.2@jar
+--- androidx.constraintlayout:constraintlayout-solver:1.1.3@jar
+--- com.appsflyer:af-android-sdk:4.10.0@aar
+--- com.github.bumptech.glide:disklrucache:4.8.0@jar
+--- com.github.bumptech.glide:annotations:4.8.0@jar
+--- com.squareup.okhttp3:okhttp:3.12.0@jar
+--- com.mixpanel.android:mixpanel-android:5.6.2@aar
+--- com.google.code.gson:gson:2.8.2@jar
+--- com.crashlytics.sdk.android:answers-shim:0.0.6@aar
+--- com.crashlytics.sdk.android:beta:1.2.7@aar
+--- com.crashlytics.sdk.android:crashlytics-core:2.4.1@aar
+--- com.crashlytics.sdk.android:answers:1.4.1@aar
+--- io.fabric.sdk.android:fabric:1.4.1@aar
+--- org.jetbrains.kotlin:kotlin-stdlib:1.3.31@jar
+--- io.reactivex:rxjava:1.0.14@jar
+--- com.parse.bolts:bolts-android:1.4.0@jar
+--- com.google.zxing:core:3.3.3@jar
+--- com.google.auto.value:auto-value-annotations:1.6.3@jar
+--- com.squareup.okio:okio:1.15.0@jar
+--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.31@jar
+--- org.jetbrains:annotations:13.0@jar
+--- com.parse.bolts:bolts-applinks:1.4.0@jar
\--- com.parse.bolts:bolts-tasks:1.4.0@jar

which shows the line +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0@aar only once (well once per product flavor/build type)

update: found a more tree like dependency graph, here is a snippet but there is a huge amount of this stuff, cant even paste it on pastebin there is so much

+--- androidx.appcompat:appcompat:1.0.2
|    +--- androidx.fragment:fragment:1.0.0
|    |    +--- androidx.core:core:1.0.0 -> 1.0.2 (*)
|    |    +--- androidx.legacy:legacy-support-core-ui:1.0.0
|    |    |    +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
|    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.0.2
|    |    |    |    \--- androidx.core:core:1.0.0 -> 1.0.2 (*)

tried removing these which seemed to have no effect

implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'

my dependencies look like this

dependencies {
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.browser:browser:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.core:core:1.0.2'
    implementation 'androidx.emoji:emoji-appcompat:1.0.0'
    implementation 'androidx.emoji:emoji-bundled:1.0.0'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'
    implementation 'androidx.legacy:legacy-support-v13:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'ca.barrenechea.header-decor:header-decor:0.2.8'
    implementation 'com.andkulikov:transitionseverywhere:1.8.0'
    implementation 'com.anjlab.android.iab.v3:library:1.0.44'
    implementation 'com.appsflyer:segment-android-integration:1.+'
    implementation 'com.codewaves.stickyheadergrid:stickyheadergrid:0.9.6'
    implementation 'com.facebook.android:facebook-android-sdk:5.1.1'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'com.google.firebase:firebase-core:17.0.1'
    implementation 'com.google.firebase:firebase-messaging:19.0.1'
    implementation 'com.google.firebase:firebase-perf:18.0.1'
    implementation 'com.kishan.askpermission:askpermission:1.0.3'
    implementation 'com.segment.analytics.android.integrations:firebase:1.3.1'
    implementation 'com.segment.analytics.android.integrations:mixpanel:2.1.0'
    implementation 'com.segment.analytics.android:analytics:4.+'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
    implementation 'com.squareup.retrofit2:retrofit:2.5.0'
    implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
    implementation 'io.branch.sdk.android:library:2.+'
    implementation 'joda-time:joda-time:2.10.1'
    implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
    implementation 'me.relex:circleindicator:1.2.2@aar'
    implementation 'org.greenrobot:eventbus:3.1.1'
    implementation 'se.emilsjolander:StickyScrollViewItems:1.1.0'
    implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
        transitive = true;
    }
    kapt 'com.github.bumptech.glide:compiler:4.8.0'

    //---Testing---
    testImplementation 'junit:junit:4.12'
    androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    androidTestImplementation('androidx.test.espresso:espresso-contrib:3.1.0') {
        exclude group: 'com.android.support', module: 'appcompat'
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.android.support', module: 'support-annotations'
        exclude module: 'recyclerview-v7'
    }
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
    implementation 'androidx.test.espresso:espresso-idling-resource:3.2.0'
    androidTestImplementation 'androidx.test:rules:1.2.0'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestUtil 'androidx.test:orchestrator:1.2.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.31"
    implementation 'com.jakewharton.rxbinding:rxbinding:0.3.0'
    //-------------
}

I've also tried to force the support library version, not sure if this has any usefulness or if im doing it wrong, but i saw it was suggested in a post here on SO

final SUPPORT_LIB_VER = '28.0.0'

configurations.all {
    resolutionStrategy {
        force "com.android.support:appcompat-v7:${SUPPORT_LIB_VER}"
        force "com.android.support:support-v4:${SUPPORT_LIB_VER}"
    }
}

I also have this in my gradle.properties

android.enableJetifier=true
android.useAndroidX=true

Does anyone know an easy way to find what is using this particular dependancy so i can try resolve the duplication, or just know what library might be causing it?

ANSWER

Answered 2019-Jul-23 at 19:15

So after days of suffering I finally found the issue

i had to change

implementation 'com.segment.analytics.android.integrations:firebase:1.3.1'

to

implementation 'com.segment.analytics.android.integrations:firebase:1.3.1@aar'

fml

The easiest way to trouble shoot this i found was to make a clean new android project and put all your dependencies from your main project in there and use divide and conquer to pin point which library is causing the issue specifically. Found a random 0 rating answer that suggested putting @aar on the end without an explanation, and it worked.

Source https://stackoverflow.com/questions/57094328

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install DiskLruCache

Download [the latest .jar][jar] or grab via Maven:. Snapshots of the development version are available in [Sonatype’s snapshots repository][snap]. If you would like to compile your own version, the library can be built by running mvn clean verify. The output JAR will be in the target/ directory. (Note: this requires Maven be installed).

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.