The problem here is that javax.xml.transform is not part of the Android platform so you will not be able to use this jar file with your Android app.
All you have to do to use a third-party jar with Android is to drop the jar file into your project lib directory. However if the jar has dependencies then the classes in the jar may not work. On Dec 14, 12:18 pm, Jey Michael <[email protected]> wrote: > I think this will be addressed by my > fix:https://review.source.android.com/#change,12625 > > Looks like the above is not merged into the source tree yet. > -J e y > > On Mon, Dec 14, 2009 at 1:02 AM, bear tung <[email protected]> wrote: > > for example, xml-security project. I used add > > xmlsec-1.4.3.jar(http://santuario.apache.org/dist/java-library/) in asset > > dir, > > then I add library. But when I run my Activity, it was force closed with > > error: > > > E/dalvikvm( 1427): Could not find method > > javax.xml.transform.TransformerFactory.newInstance, referenced from method > > com.linda.TestTest.onCreate > > W/dalvikvm( 1427): VFY: unable to resolve static method 14: > > Ljavax/xml/transform/TransformerFactory;.newInstance > > ()Ljavax/xml/transform/TransformerFactory; > > W/dalvikvm( 1427): VFY: rejecting opcode 0x71 at 0x0008 > > W/dalvikvm( 1427): VFY: rejected Lcom/linda/TestTest;.onCreate > > (Landroid/os/Bundle;)V > > W/dalvikvm( 1427): Verifier rejected class Lcom/linda/TestTest; > > > thanks for help > > > -- > > Bear ^O^ > > > -- > > > You received this message because you are subscribed to the Google Groups > > "android-platform" 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-platform?hl=en. -- 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

