Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Sample_AcquireChannels crashes on startup

Rank

Total Posts: 4

Joined 2010-06-24

PM

Using the ANT Android SDK v4 package on an Android emulator, I can happily install the prebuilt sample app and get it talking via the ANT emulator to my USB dongle on my development PC.
If I build the sample app from source, then it always crashes at startup.
If the prebuilt app is running, then that implies that Radio and USB services are working fine, as is the emulator.
Any ideas on what could be causing the crash?

Mat

08-12 10:35:26.540: W/dalvikvm(909): VFY: unable to resolve exception class 36 (Lcom/dsi/ant/channel/ChannelNotAvailableException;)
08-12 10:35:26.580: W/dalvikvm(909): VFY: unable to find exception handler at addr 0x23
08-12 10:35:26.580: W/dalvikvm(909): VFY: rejected Lcom/dsi/ant/sample/acquirechannels/ChannelList;.addNewChannel (Z)V
08-12 10:35:26.580: W/dalvikvm(909): VFY: rejecting opcode 0x0d at 0x0023
08-12 10:35:26.580: W/dalvikvm(909): VFY: rejected Lcom/dsi/ant/sample/acquirechannels/ChannelList;.addNewChannel (Z)V
08-12 10:35:26.580: W/dalvikvm(909): Verifier rejected class Lcom/dsi/ant/sample/acquirechannels/ChannelList;
08-12 10:35:26.580: W/dalvikvm(909): Class init failed in newInstance call (Lcom/dsi/ant/sample/acquirechannels/ChannelList;)
08-12 10:35:26.580: D/AndroidRuntime(909): Shutting down VM
08-12 10:35:26.580: W/dalvikvm(909): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
08-12 10:35:26.600: E/AndroidRuntime(909): FATAL EXCEPTION: main
08-12 10:35:26.600: E/AndroidRuntime(909): java.lang.VerifyError: com/dsi/ant/sample/acquirechannels/ChannelList
08-12 10:35:26.600: E/AndroidRuntime(909): at java.lang.Class.newInstanceImpl(Native Method)
08-12 10:35:26.600: E/AndroidRuntime(909): at java.lang.Class.newInstance(Class.java:1319)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.app.ActivityThread.access$600(ActivityThread.java:123)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.os.Handler.dispatchMessage(Handler.java:99)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.os.Looper.loop(Looper.java:137)
08-12 10:35:26.600: E/AndroidRuntime(909): at android.app.ActivityThread.main(ActivityThread.java:4424)
08-12 10:35:26.600: E/AndroidRuntime(909): at java.lang.reflect.Method.invokeNative(Native Method)
08-12 10:35:26.600: E/AndroidRuntime(909): at java.lang.reflect.Method.invoke(Method.java:511)
08-12 10:35:26.600: E/AndroidRuntime(909): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
08-12 10:35:26.600: E/AndroidRuntime(909): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
08-12 10:35:26.600: E/AndroidRuntime(909): at dalvik.system.NativeStart.main(Native Method)
     
Avatar
RankRankRankRank

Total Posts: 129

Joined 2010-11-30

PM

This is an issue caused by a bug with ADT 22 not including library classes in your apk.

See http://www.thisisant.com/forum/viewthread/3983/