Hello,
I try to port the XMPP library to android sdk 1.5, follow the demo
ApiDemo from the sdk, I created a directory something like below:
smack--+AndroidManifest.xml ..The
manifest for the smack library
|
+src ..The source
code for the smack
:
:
------
test .. The test
directory for the test case
|
+
AndroidManifest.xml .. The manifest for
the test code
|
:
:
+src .. The
test code for the smack library.
After I build both projects, I install them respectively on the
emulator, then I launch the test case by command:
$ adb shell am instrument -w org.jivesoftware.smack.test/
android.test.InstrumentationTestRunner
then console output following information:
$INSTRUMENTATION_RESULT: shortMsg=org.jivesoftware.smack.LoginTest
$INSTRUMENTATION_RESULT: longMsg=java.lang.VerifyError:
org.jivesoftware.smack.LoginTest
$INSTRUMENTATION_CODE: 0
I think there is something wrong with the test case then I check with
command:
$adb logcat
I found following error message in the log:
:
:
D/AndroidRuntime( 1216): --- registering native functions ---
D/ActivityManager( 564): Uninstalling process
org.jivesoftware.smack.test
I/ActivityManager( 564): Start proc org.jivesoftware.smack.test for
added application org.jivesoftware.smack.test: pid=1223 uid=10019 gids=
{}
W/dalvikvm( 1223): VFY: unable to find class referenced in signature
(Lorg/jivesoftware/smack/XMPPConnection;)
E/dalvikvm( 1223): Could not find method
org.jivesoftware.smack.XMPPConnection.connect, referenced from method
org.jivesoftware.smack.LoginTest.testInvalidLogin
W/dalvikvm( 1223): VFY: unable to resolve virtual method 176: Lorg/
jivesoftware/smack/XMPPConnection;.connect ()V
:
It seems there is something wrong for the dalvik to resolve the
connect method in the org.jivesoftware.smack package, so I type the
command
$ adb shell dexdump -d -f -h /data/dalvik-cache/
d...@[email protected][email protected] | grep XMPPConnection
then, I find following information in output
#4 : (in Lorg/jivesoftware/smack/XMPPConnection;)
013130: |[013130]
org.jivesoftware.smack.XMPPConnection.connect:()V
It seems that the XMPPConnection class with its method have been
install properly already.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---