Developer Developer - 1 year ago 222
Android Question

The Import cannot be resolved

I am new to Android. Currently, I have the
(Windows 32 bit) installed - and have successfully installed the Android SDK and Eclipse. Also, I have updated everything in the Android SDK manager. Now, I am working in Android v-4.4.2

My project runs successfully, but when I import;
the project won't debug. I get the error
The Import cannot be resolved

I searched in Google and installed
Android Support Library
then added
in my project.

  1. File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"

  2. Project-> properties->Android. In the section library "Add" and choose "appCompat"


enter image description here

Successfully added in
but still I am still getting the error.

Answer Source
  1. Go to your project in the navigator, right click on properties.

  2. Go to the Java Build Path tab on the left.

  3. Go to the libraries tab on top.

  4. Click add external jars.

  5. Go to your ADT Bundle folder, go to sdk/extras/android/support/v7/appcompat/libs.

  6. Select the file android-support-v7-appcompat.jar

  7. Go to order and export and check the box next to your new jar.

  8. Click ok.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download