Hi,
I can install and run Android_AntPlusPluginSampler_3-1-0.apk from ANT+_Android_SDK_v.P.B2.zip (and I can connect to an HRM device).
But when I build (with android studio) and install Android_AntPlusPluginSampler_3-1-0.apk myself it crashes while starting up.
I don't have much experience with Android app development, so there may be things I have not configured correctly.
However, I would have thought it would be pretty straight forward to build the sample app.
Any ideas about what's wrong in my setup? Logcat snippet below:
============================= LOGCAT
I/ActivityManager( 3610): Waited long enough for: ServiceRecord{4239c1e0 u0 com.samsung.sdrc.ava/.kic.KicService}
I/ActivityManager( 3610): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.dsi.ant.antplus.pluginsampler/.Activity_Dashboard} from pid 3761
I/ActivityManager( 3610): Start proc com.dsi.ant.antplus.pluginsampler for activity com.dsi.ant.antplus.pluginsampler/.Activity_Dashboard: pid=4331 uid=10071 gids={50071}
E/AndroidRuntime( 4331): FATAL EXCEPTION: main
E/AndroidRuntime( 4331): Process: com.dsi.ant.antplus.pluginsampler, PID: 4331
E/AndroidRuntime( 4331): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.dsi.ant.antplus.pluginsampler/com.dsi.ant.antplus.pluginsampler.Activity_Dashboard}: java.lang.ClassNotFoundException: Didn't find class "com.dsi.ant.antplus.pluginsampler.Activity_Dashboard" on path: DexPathList[[zip file "/data/app/com.dsi.ant.antplus.pluginsampler-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.dsi.ant.antplus.pluginsampler-1, /vendor/lib, /system/lib]]
E/AndroidRuntime( 4331): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
E/AndroidRuntime( 4331): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime( 4331): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 4331): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 4331): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 4331): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 4331): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 4331): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4331): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 4331): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 4331): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 4331): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 4331): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dsi.ant.antplus.pluginsampler.Activity_Dashboard" on path: DexPathList[[zip file "/data/app/com.dsi.ant.antplus.pluginsa
E/AndroidRuntime( 4331): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 4331): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime( 4331): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime( 4331): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
E/AndroidRuntime( 4331): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
E/AndroidRuntime( 4331): ... 11 more
W/ActivityManager( 3610): Force finishing activity com.dsi.ant.antplus.pluginsampler/.Activity_Dashboard
W/ActivityManager( 3610): Activity pause timeout for ActivityRecord{4238a598 u0 com.dsi.ant.antplus.pluginsampler/.Activity_Dashboard t2 f}
E/WindowManager( 3610): Starting window AppWindowToken{423c9f98 token=Token{4233f7f0 ActivityRecord{4238a598 u0 com.dsi.ant.antplus.pluginsampler/.Activity_Dashboard t2}}} timed out
W/ActivityManager( 3610): Activity destroy timeout for ActivityRecord{4238a598 u0 com.dsi.ant.antplus.pluginsampler/.Activity_Dashboard t2 f}
I/ActivityManager( 3610): Start proc com.android.musicfx for broadcast com.android.musicfx/.ControlPanelReceiver: pid=4349 uid=10010 gids={50010, 3003, 3002}
=========================================