This is because you are attempting to run android.jar which does not contain any code at all (all the methods throw an exception). Also, note that a lot of the implementation of the view and drawing system is done in native and this is not provided with the SDK (nor could it as it's very tied to the rest of the Android platform)
By the way, the layout editor in ADT already does this. It uses a separate library that is a custom version of the Android view framework with an implementation of the underlying drawing system in Java. Eclipse load this library, as well as all the framework system resources, and is then able to instantiate and draw views from an XML layout file. It also supports custom views by dynamically instantiating your custom view code from the .class files generated by the Eclipse compiler and loading your project resources (there are some limitations depending on what your view class does in its constructor and drawing methods). Xav On Wed, Jun 3, 2009 at 9:41 AM, Paul Turchenko <[email protected]> wrote: > > HI. I'm trying to develop plugin for eclipse that should draw my > custom view inflated from XML. Everything works fine until eclipse > tries to instantiate any class from android.jar library. It fails with > Runtime exception without any other helpful information (stub!). Any > ideas why is it so? > > > -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

