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

  • Replies:3
Michael
  • Forum posts: 2

Jul 11, 2010, 8:28:33 PM via Website

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
Jeremiah
  • Forum posts: 775

Jul 11, 2010, 11:42:37 PM via Website

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
Michael
  • Forum posts: 2

Jul 12, 2010, 10:37:52 AM via Website

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