wood burning stoves*
The moose likes Android and the fly likes dalvik format error in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "dalvik format error in android" Watch "dalvik format error in android" New topic
Author

dalvik format error in android

beta jane
Greenhorn

Joined: Oct 07, 2009
Posts: 14


Iam getting this error:

[2009-10-22 10:13:52 - ring]Could not find ring.apk!
[2009-10-22 10:37:45 - ring]
trouble processing "java/security/cert/CertPathParameters.class":
[2009-10-22 10:37:45 - ring]
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 to compiling an
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.
[2009-10-22 10:37:45 - ring]1 error; aborting
[2009-10-22 10:37:45 - ring]Conversion to Dalvik format failed with error 1
[2009-10-22 10:42:20 - ring]
trouble processing "java/security/cert/CertPathParameters.class":
[2009-10-22 10:42:20 - ring]
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 to compiling an
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.
[2009-10-22 10:42:20 - ring]1 error; aborting
[2009-10-22 10:42:20 - ring]Conversion to Dalvik format failed with error 1
beta jane
Greenhorn

Joined: Oct 07, 2009
Posts: 14
please respond
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

The error message tells you what is wrong:

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 to compiling an
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.


You probably are using class files that were compiled using a Statndard Java compiler to be run on JVMs for desktop systems. Android uses Dalvik Virtual machine and your code fails at the verification stage.

Maybe you need to recompile the class files...


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dalvik format error in android