Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8818437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:06:18+00:00 2026-06-14T05:06:18+00:00

I wrote an Android app that use the Guava library. The app works perfectly

  • 0

I wrote an Android app that use the Guava library.

The app works perfectly fine on Android 4 (virtual machine and real device).

However, when I try to launch the app on a virtual machine running Android 2.1, I get the following error:

java.lang.NoClassDefFoundError: com.google.common.collect.ImmutableSortedMap

I have played with the libraries imports. The idea behind: older version of Android might handle jars in a different way. No success here.

It is worth mentioning, that the app is an update of a previous version already using Guava. The previous version worked fine on all devices, but wasn’t using the ImmutableSortedMap object rather just an ImmutableList.
Would it be possible that the phone is loading his own version of the Guava library (that might not contains ImmutableSortedMap)?

I am using Eclipse with ADT 20. Here is how my libraries looks like in Eclipse package explorer:

Eclipse package explorer.

Thank you in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:06:20+00:00Added an answer on June 14, 2026 at 5:06 am

    You probably need to be using the guava-jdk5 back port. In newer versions of Guava, ImmutableSortedMap implements NavigableMap, which was introduced in JDK6. NavigableMap is not supported in earlier versions of Android — specifically including 2.1; NavigableMap was released on Android as of Android 2.3 Gingerbread, it looks like.

    (In the backport, ImmutableSortedMap supports all the NavigableMap methods; it just doesn’t actually implement NavigableMap.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to develop an Android app that allows a user to write
I want to write a small Android app with a GUI that should display
I'm new in Android Programming. I'm trying to write an app that uses USB
Suppose I want to write an app for Android OS that is not going
I wrote an Android App using the Mixare ( link to mixare project )
I wrote an android app for someone, but they want the source code because
I am trying to learn Android app development and wrote a very simple app
I am working on an app for android using phonegap and unity. I wrote
I am making an android app that shows the Calendar day view, it looks
i have written an application that needs to process outgoing calls. Everything works fine,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.