Export to GitHub

viewpagerexample - issue #1

Not able to run and showing error


Posted on Aug 24, 2011 by Massive Kangaroo

I have successfully download this code by SVN checkout. I have fully gone through this article and i have also added "compatibility library" by Right click on Android project and click on Android Tools -> Add compatibility library and still it is showing error in Project title. FYI, it is not indicating any error inside the source class files and layout files.

FYI, i have also made project clean.

What may be the problem and probable solution for the same?

Comment #1

Posted on Aug 24, 2011 by Massive Horse

Can you try Right clicking on the project and try Android Tools -> Fix Project Properties. Then clean the project again and restart eclipse. If there are no console errors shown then this is just an eclipse issue.

Comment #2

Posted on Aug 24, 2011 by Massive Kangaroo

@rhynd ya i have done it, still having no success, FYI, i have just started with Eclipse Indigo.

Comment #3

Posted on Aug 25, 2011 by Quick Monkey

configure build path->remove and add android-support-v4 jar again clean and build

Comment #4

Posted on Aug 25, 2011 by Massive Kangaroo

@raahul , i also did the same as you have mentioned, but still no success. please find an attachment.

Attachments

Comment #5

Posted on Aug 25, 2011 by Quick Monkey

after checking out,before adding compatibility library ,go to configure build path. remove the jar android-support-v4 in libraries .now add compatibility layer by right clicking proj->android tools -> addcompatibility library.

Comment #6

Posted on Aug 25, 2011 by Massive Kangaroo

@raahul its working fine now, i also shocked that library were being added for twice :(. Anyway thanx for the answers and resolution of this issue.

Comment #7

Posted on Oct 12, 2011 by Grumpy Kangaroo

how to change page by button?

Comment #8

Posted on Oct 19, 2011 by Happy Bear

i add project with eclipse.and add the v4.jar to the project . but there is a dismiss about import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager;

this two class is not in android-support-v4.jar. any ideas?i have no idea about this.thx.

Comment #9

Posted on Oct 19, 2011 by Happy Bear

i find the solution: as right clicking proj->android tools -> addcompatibility

the jar added to the project is wrong(but i don't konw why) so i find a jar from other project .then it works

Comment #10

Posted on Oct 19, 2011 by Happy Monkey

nothing is wrong with the jar..actually jar is getting added twice that is the problem.

Comment #11

Posted on Mar 26, 2012 by Massive Rabbit

Hi, after doing all that is in this issue... I got this error: "[2012-03-26 10:33:10 - AwesomePager] Unable to resolve target 'android-10'" (whitout the quotes) And everything in the project throws errors... What can I do??

Status: New

Labels:
Type-Defect Priority-Medium