Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT Demo Crash

Rank

Total Posts: 2

Joined 2013-05-20

PM

Hello all,

I'm having a problem while trying to running the program provided in the Android SDK download. The program is the ant Sample Acquire Channels. I imported into ADT and added the external jar libraries to my project. I then connect my ANT enabled phone and when I run as application it will install successfully but when the program starts I get this output and also the message "Sorry! The application Acquire Channels ANT Sample (process com.dsi.ant.sample.acquirechannels) has stopped unexpectedly. Please try again.

05-19 17:40:05.987W/dalvikvm(2392): VFYunable to resolve exception class 36 (Lcom/dsi/ant/channel/ChannelNotAvailableException;)
05-19 17:40:05.987W/dalvikvm(2392): VFYunable to find exception handler at addr 0x23
05
-19 17:40:05.987W/dalvikvm(2392): VFY:  rejected Lcom/dsi/ant/sample/acquirechannels/ChannelList;.addNewChannel (Z)V
05
-19 17:40:05.987W/dalvikvm(2392): VFY:  rejecting opcode 0x0d at 0x0023
05
-19 17:40:05.987W/dalvikvm(2392): VFY:  rejected Lcom/dsi/ant/sample/acquirechannels/ChannelList;.addNewChannel (Z)V
05
-19 17:40:05.987W/dalvikvm(2392): Verifier rejected class Lcom/dsi/ant/sample/acquirechannels/ChannelList;
05-19 17:40:05.987W/dalvikvm(2392): Class init failed in newInstance call (Lcom/dsi/ant/sample/acquirechannels/ChannelList;)
05-19 17:40:05.987D/AndroidRuntime(2392): Shutting down VM
05
-19 17:40:05.987W/dalvikvm(2392): threadid=3thread exiting with uncaught exception (group=0x40026160)
05-19 17:40:05.987E/AndroidRuntime(2392): Uncaught handlerthread main exiting due to uncaught exception
05
-19 17:40:05.997E/AndroidRuntime(2392): java.lang.VerifyErrorcom.dsi.ant.sample.acquirechannels.ChannelList
05
-19 17:40:05.997E/AndroidRuntime(2392):  at java.lang.Class.newInstanceImpl(Native Method)
05-19 17:40:05.997E/AndroidRuntime(2392):  at java.lang.Class.newInstance(Class.java:1479)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2519)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.app.ActivityThread.access$2200(ActivityThread.java:123)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1870)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.os.Looper.loop(Looper.java:123)
05-19 17:40:05.997E/AndroidRuntime(2392):  at android.app.ActivityThread.main(ActivityThread.java:4370)
05-19 17:40:05.997E/AndroidRuntime(2392):  at java.lang.reflect.Method.invokeNative(Native Method)
05-19 17:40:05.997E/AndroidRuntime(2392):  at java.lang.reflect.Method.invoke(Method.java:521)
05-19 17:40:05.997E/AndroidRuntime(2392):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-19 17:40:05.997E/AndroidRuntime(2392):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-19 17:40:05.997E/AndroidRuntime(2392):  at dalvik.system.NativeStart.main(Native Method)
05-19 17:40:06.007E/SemcCheckin(2392): Get crash dump level java.io.FileNotFoundException: /data/semc-checkin/crashdump
05
-19 17:40:06.017I/dalvikvm(2392): threadid=7reacting to signal 3
05
-19 17:40:06.027I/dalvikvm(2392): Wrote stack trace to '/data/anr/traces.txt' 


The SDK download also comes with a Prebuilt apk. When I install that apk the program runs fine which has me scratching my head. I'm a bit new to all this and I may have overlooked a obvious solution. Any help would be appreciated. Thanks!      
Avatar
RankRankRankRank

Total Posts: 129

Joined 2010-11-30

PM

The latest ADT (22) has issues when trying to include jar libraries. While it doesn't exactly match your issue, you may need to follow the steps here:
http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-anymore-after-upgrade-to-adt-22
     
Rank

Total Posts: 2

Joined 2013-05-20

PM

Rohan,

That did it! For anyone that has the same problem I'd just like to add you can find 'Order and Export' at.

Project > Properties > Java Build Path > 'Order and Export' is a tab.

I had trouble finding that. If you think I'm speaking gibberish read that StackOverflow post first.

Thanks again.      
Avatar
RankRankRankRank

Total Posts: 129

Joined 2010-11-30

PM

Just ask your question right here, then everyone can benefit.      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Topic merged for cleanup.