Android Forum » Android Developer Forum » Android Developer Forum » Error with ADT on Eclipse - OvalShape not display on layout preview

Error with ADT on Eclipse - OvalShape not display on layout preview

Error with ADT on Eclipse - OvalShape not display on layout preview
created on Jul 11, 2010 8:28:33 PM
Hi guys,

I have a little problem with the ADT in eclipse. I develope a custom view, which will contains a OvalShape. After testing this app on the emulator, everything seems to be ok, but only the integrated layout preview of ADT plugin shows me following msg: ClassNotFoundException: android.graphics.drawable.shapes.OvalShape

Is this a plugin bug? After hours searching I found nothing -.-

Could somebody help me?

Greetz

Michael
Reply with quote Reply Link ±0     (0 votes)
RE: Error with ADT on Eclipse - OvalShape not display on layout preview
created on Jul 11, 2010 11:42:37 PM
I dont use eclipse but I have a suggestion you might try. Try adding this line to the top of the class that contains the view with the oval shape, before the class definition:

import android.graphics.drawable.shapes.OvalShape;

If its still not finding the OvalShape class then maybe its a problem with you classpath or android path in your environment variables
Reply with quote Reply Link ±0     (0 votes)
RE: Error with ADT on Eclipse - OvalShape not display on layout preview
created on Jul 12, 2010 10:37:52 AM
Thanks for your hint, but eclipse automatically adds includes to projets.

But what you mean with problem with android path in my environment variables?! I think, the android installer configured already my system correctly?! (OS: Win7)
Reply with quote Reply Link ±0     (0 votes)
RE: Error with ADT on Eclipse - OvalShape not display on layout preview
created on Jul 12, 2010 10:54:31 AM
Michael, not to go off topic, but you can sign up to the AndroidPIT developer community if you'd like.

-----
Recommended reading for new AndroidPIT members! Important to all community members: the AndroidPIT Forum rules

Reply with quote Reply Link ±0     (0 votes)