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 8407105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:17:08+00:00 2026-06-09T23:17:08+00:00

Has anybody else seen this problem where imports can’t be resolved at Andriod runtime?

  • 0

Has anybody else seen this problem where imports can’t be resolved at Andriod runtime?

I am trying to build the calendar android sample by following the instructions:
http://samples.google-api-java-client.googlecode.com/hg/calendar-android-sample/instructions.html?r=default

My build path contains the following:

BuildPath

It builds OK in Eclipse with no problems/warnings. However when I launch it on my HTC (android 2.3.3) but it “stops unexpectedly” and in LogCat it says:

E/AndroidRuntime(8170): java.lang.Error: Unresolved compilation problems: 
E/AndroidRuntime(8170):     The import com.google.api.client cannot be resolved
Followed by many other google-api import resolution failures.

And when run under debug: the code window shows it stopping at the first import

package com.google.api.services.samples.calendar.android;
import com.google.api.client.extensions.android2.AndroidHttp; << stops here

I’m not sure if the import failures are specific to the google API stuff or a more widespread issue with imports.

I guess that somehow Maven is not linking these libraries into the APK. It surprises me that this issue does not get flagged as a problem at build time where I might have better luck in fixing them.

I suspect I have damaged my Maven installation somehow and possibly even Eclipse also. My next step is to wipe them completely and start with fresh installs.

Has anybody seen this problem where imports can’t be resolved at runtime?
Or maybe someone has some advice on areas of investigation that I might pursue?
Or any relevant experiences that you have would be welcome.

Kind Regards,
Peter

  • 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-09T23:17:09+00:00Added an answer on June 9, 2026 at 11:17 pm

    In addition to upgrading to Java 6, I would suggest removing all external libraries and re-adding them. Eclipse generally has major problems when you upgrade Java or ADT versions (in my case anyway), and the best solution for me has been to wipe everything out and start over.

    If removing all dependencies/external libraries and re-adding them doesn’t solve your problem I suggest creating a new project, copying over all your assets, then re-adding the google libraries there.

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

Sidebar

Related Questions

Has anybody else had problem with position() working odd in IE? I'm trying to
Has anybody else encountered this. Whenever the images are intially loaded by the browser
Has anybody else noticed that Bindings with ElementName do not resolve correctly for MenuItem
Has anybody used Eclipse memory manager to detect memory leak in java codes? Can
Has anybody else had issues where Intellij 9 forgets what libraries you added to
Good Afternoon! Has anybody else noticed a change in the default behavior of the
Has anybody ever seen/attempted to write a service locator pattern which uses a Guice
Has anybody else had an issue with the new Intellij HG4IDEA not working in
I just want to ask if anybody else is also having problems with this;
Has anybody else been noticing odd issues with the DOM structure in Firefox 10?

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.