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:
- Created 6 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And you know how everyone loves Guava taking on dependencies…
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.