Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Want to use ViewPager, cannot get android.support.* to be recognized?

EDIT Sorry about all the pictures. I tried to give you the best idea of where I am at.

I am trying to get ViewPager working on my application, but it will not recognize the Support Library that I downloaded in the SDK manager.

I am coding for SDK Version 10. This is a screen shot of my SDK Manager:

enter image description here

After installing the Android Support Library and the most recent Tools, I went to Help >> Check for Updates. After running this I receive the two pop ups shown below.

enter image description here

The Problem Occured pop up says that it can't find a repository at that site. I installed the Sequoyah Natice Code Support when I first started developing this application but have never used it. I tried to re-install the package to get rid of this pop-up but it will not let me as it is already installed.

enter image description hereenter image description here

In my code I get an error when trying to import android.support.v4.view.ViewPager;. The screen shot is below. When I hover my cursor over the import line, it says The import android.support.v4 cannot be resolved.

enter image description here

like image 832
JuiCe Avatar asked Jan 08 '13 15:01

JuiCe


1 Answers

To add the Android Support Library to an existing Android Project:

  • Right click on your project
  • Click Android Tools
  • Click Add Support Library

That should take care of setting up the android-support jar so it can be used by the project.

like image 186
A--C Avatar answered Sep 19 '22 00:09

A--C