question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide Android minSdkVersion for every Guava version (or even for every class)

See original GitHub issue

… so that I use the correct Guava version depending on my Android project’s config without unnecessary trial and error.

My current guess:

  • If Guava Android is compatible with Java 1.7, according to https://source.android.com/setup/requirements it must have minSdkVersion 21.
  • To support Android versions before that (down to Gingerbread), I need to support Java 1.6, and so only Guava until version 20.0 will work.

Is this correct?

Class specific @TargetAPI annotations would very helpful, too, so that I can use a newer Guava version while not using certain APIs. (This can be implemented with internal Build.VERSION checks.)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JakeWhartoncommented, Aug 8, 2019

And you know how everyone loves Guava taking on dependencies…

1reaction
akideecommented, Nov 22, 2017

OK, then you know why I’d like to have a mapping “Guava version => min Android SDK version”. It’s more about used Java SDK features than language level.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<uses-sdk> | Android Developers
android :minSdkVersion: An integer designating the minimum API Level ... As Android evolves with each new version, some behaviors and even ...
Read more >
android - Duplicate class com.google.common.util.concurrent ...
0' in my app/build.gradle , I get this error: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.
Read more >
Jack + Multidex NoClassDefFoundError's on all dependency ...
Actual: running on any emulator or device API 15-21 fails with java.lang.NoClassDefFoundError for all library classes.
Read more >
Kotlin compiler pre-release problem in android studio IDE
I get a error message like this Class 'kotlin. ... almost all of my program code in the project gets the same error...
Read more >
Firebase Android SDK Release Notes - Google
Updated minSdkVersion to 19 to match Cloud Messaging minSdkVersion . ... All its functionality has been moved to the new API-only library: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found