Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Creating Indicator from Fragment won't work #157

Closed
onigunn opened this issue Nov 13, 2012 · 13 comments
Closed

Creating Indicator from Fragment won't work #157

onigunn opened this issue Nov 13, 2012 · 13 comments

Comments

@onigunn
Copy link

onigunn commented Nov 13, 2012

Hi there,

I've included the indicator on Eclipse as library, all classes are resolved by compile time. But if I try to initialize an indicator, I receive this kind of exception

11-13 21:57:14.230: E/AndroidRuntime(6596): java.lang.NoClassDefFoundError:com.viewpagerindicator.R$attr
11-13 21:57:14.230: E/AndroidRuntime(6596):     at com.viewpagerindicator.CirclePageIndicator.<init>(CirclePageIndicator.java:72)
11-13 21:57:14.230: E/AndroidRuntime(6596):     at com.viewpagerindicator.CirclePageIndicator.<init>(CirclePageIndicator.java:68)

I've cleaned the project several times, tried to init the indicator programmatically all always end in this exception.

I'm using the latest support-lib version, target SDK ist 16.

Maybe this is important too:

11-13 22:16:18.850: W/dalvikvm(10440): VFY: unable to resolve static field 1555 (vpiCirclePageIndicatorStyle) in Lcom/viewpagerindicator/R$attr;
@jekopena
Copy link

Same problem here. It was working until I downloaded the last Android SDK Tools rev21 and the last ADT plugin for Eclipse.

@jekopena
Copy link

onigunn if this helps you, I have cleaned my project and the ViewPagerIndicator project, rebuilded them and now it's working again.

@imonhf
Copy link

imonhf commented Nov 15, 2012

@jekopena try to change the compliance level in your project properties. Right click on your project goto properties>java compiler> compiler compliance level try selecting 1.6.

@duncandee
Copy link

Update to the latest support. Lib

On Thursday, November 15, 2012, imonhf wrote:

@jekopena https://github.com/jekopena try to change the compliance
level in your project properties. Right click on your project goto
properties>java compiler> compiler compliance level try selecting 1.6.


Reply to this email directly or view it on GitHubhttps://github.com//issues/157#issuecomment-10396125.

@onigunn
Copy link
Author

onigunn commented Nov 15, 2012

jekopena - I can't count how many times I tried a clean / build.

I'll will update tonight to adt21 and try it again.

@onigunn
Copy link
Author

onigunn commented Nov 15, 2012

jekopena - no luck with adt21 either.

@jekopena
Copy link

As I said, in my case it worked after cleaning and rebuilding both projects and it wasn't the first time I tried it. Also I already had compiler compliance level to 1.6. I don't know what it could be, sorry I can't help you.

@duncandee
Copy link

Update your support jar.

On Thursday, November 15, 2012, jekopena wrote:

As I said, in my case it worked after cleaning and rebuilding both
projects and it wasn't the first time I tried it. Also I already had
compiler compliance level to 1.6. I don't know what it could be, sorry I
can't help you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/157#issuecomment-10426787.

@onigunn
Copy link
Author

onigunn commented Nov 16, 2012

Well duncandee mine is updated (was one of the first things I've done). Any other suggestions?

@duncandee
Copy link

What I did was cleanmy whole workspace. Restart eclipse. One eclipse
settles down run build. I hope you come right

On Friday, November 16, 2012, Onur wrote:

Well duncandee mine is updated (was one of the first things I've done).
Any other suggestions?


Reply to this email directly or view it on GitHubhttps://github.com//issues/157#issuecomment-10439609.

@kpraveen72
Copy link

see this http://stackoverflow.com/questions/12126194/viewpagerindicator-classnotfoundexception/12127380#12127380. This is helpful and using this i resolved my issue

@endriu125
Copy link

Probably you finally resolved the problem but after updating to Android SDK Tools r21 or r22, you need to install also Android SDK Build Tools (you will see it only after restarting the Android SDK Manager).

@onigunn
Copy link
Author

onigunn commented Aug 22, 2017

Closing because is not relevant anymore.

@onigunn onigunn closed this as completed Aug 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants