If you manually configure the build path and add sdk1.5 Android. jar to some projects, you may encounter the following compilation error:
>Attempt to include a core VM class in something other than a core
>Library.
>It is likely that you have attempted to include the core library from
>A desktop
>Virtual Machine into an application, which will most assuredly not
>Work. If
>You really intend to build a core library -- which is only appropriate
>As
>Part of creating a full Virtual Machine binary, as opposed
>Compiling
>Application -- then use the "-- Core-library" option to suppress this
>Error
>Message. If you go ahead and use "-- Core-library" but are in fact
>Building
>An application, then please be aware that your build will still fail
>At some
>Point; you will simply be denied the pleasure of reading this helpful
>Error
>Message.
>
This means that you want to apply a desktop VM class to Android applications, such as Java. AWT. *, java. Swing. *, and Java. Bean.
For available Android packages, see available packages on Android.
To solve this problem, you need to modify the. classpath file in the project directory and set the path to the following values:
<Classpathentry kind = "con"
Path = "com. Android. Ide. Eclipse. ADT. android_framework"/>