Robot Not a Dev? Pre-order Now
Not a Dev?

Android companion app crashes when attempting to open


#1

Device: LGE Nexus 5X
Android 8.1.0 (API 27)

How to reproduce:
I just installed the Misty companion app from Hockey. I attempt to open the app and it crashes right away. I’ve tried restarting my phone and then opening the Misty companion app again and get the same crash.

Here are the error logs from logcat in Android Studio:

12-23 11:18:07.093 5471-5471/com.mistyrobotics.Companion D/AndroidRuntime: Shutting down VM

                                                                       --------- beginning of crash

12-23 11:18:07.103 5471-5471/com.mistyrobotics.Companion E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mistyrobotics.Companion, PID: 5471
java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_26 or Xamarin.Android.Platform!
at android.app.ActivityThread.installProvider(ActivityThread.java:6242)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_26 or Xamarin.Android.Platform!
at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38)
at android.app.ActivityThread.installProvider(ActivityThread.java:6239)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:378)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:360)
at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32)
at android.app.ActivityThread.installProvider(ActivityThread.java:6239)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
12-23 11:18:07.105 764-780/? W/zygote64: kill(-5216, 9) failed: No such process
12-23 11:18:07.115 764-3039/? W/ActivityManager: Force finishing activity com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen
12-23 11:18:07.119 764-779/? I/ActivityManager: Showing crash dialog for package com.mistyrobotics.Companion u0
12-23 11:18:07.146 428-428/? D/SurfaceFlinger: duplicate layer name: changing Application Error: com.mistyrobotics.Companion to Application Error: com.mistyrobotics.Companion#1


#2

Tried on an older device and it’s also crashing:

LGE VS985 4G
Android 4.4.2 (API 19)

logcat:
12-23 10:35:44.582 21263-21263/? I/Process: Sending signal. PID: 21263 SIG: 9
12-23 10:35:44.592 750-1278/? I/ActivityManager: Process com.mistyrobotics.Companion (pid 21263) has died.
12-23 10:35:44.592 750-1278/? V/ActivityManager: Moving to DESTROYED: ActivityRecord{43b2ba58 u0 com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen t15} (cleaning up)
12-23 10:35:44.592 750-1278/? D/ActivityManager: resumeTopActivityLocked: Restarting ActivityRecord{43b2ba58 u0 com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen t15}
12-23 10:35:44.612 21278-21278/? D/dalvikvm: Late-enabling CheckJNI
12-23 10:35:44.612 750-1278/? I/ActivityManager: Start proc com.mistyrobotics.Companion for activity com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen: pid=21278 uid=10177 gids={50177, 3002, 3001, 3003, 1028, 1015}
12-23 10:35:44.632 21278-21284/? E/jdwp: Failed sending reply to debugger: Broken pipe
12-23 10:35:44.632 21278-21284/? D/dalvikvm: Debugger has detached; object registry had 1 entries
12-23 10:35:44.632 1324-1335/? D/SplitWindowPolicyService: updateActivityStateChanged: resumed=true pkgName=md5ad6da77d35dc86279ab73711512d008d.SplashScreen, screenId=2, isScreenFull=true, isMinimized=false, topRunningActivity=ActivityInfo{43568bc0 md5ad6da77d35dc86279ab73711512d008d.SplashScreen}, taskId=15, activityType=0
12-23 10:35:44.632 1324-1338/? V/SplitWindowPolicyService: requestUpdateStackInfo
12-23 10:35:44.632 750-1495/? V/ActivityManager: Moving to RESUMED: ActivityRecord{43b2ba58 u0 com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen t15} (starting new instance)
12-23 10:35:44.652 1324-1851/? V/SplitWindowPolicyService: updateScreenStateAndRunningActivity: screenId=2, isFull=true, isMinimized=false, topRunningActivity=ActivityInfo{43568bc0 md5ad6da77d35dc86279ab73711512d008d.SplashScreen}, uid=10177
12-23 10:35:44.652 21278-21278/? D/HyLog: I : /data/font/config/sfconfig.dat, No such file or directory (2)
12-23 10:35:44.652 21278-21278/? D/HyLog: I : /data/font/config/dfactpre.dat, No such file or directory (2)
12-23 10:35:44.652 21278-21278/? D/HyLog: I : /data/font/config/sfconfig.dat, No such file or directory (2)
12-23 10:35:44.672 21278-21278/? W/System.err: java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_26 or Xamarin.Android.Platform!
12-23 10:35:44.672 21278-21278/? W/System.err: at android.app.ActivityThread.installProvider(ActivityThread.java:4890)
12-23 10:35:44.672 21278-21278/? W/System.err: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4474)
12-23 10:35:44.672 21278-21278/? W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4411)
12-23 10:35:44.682 21278-21278/? W/System.err: at android.app.ActivityThread.access$1500(ActivityThread.java:142)
12-23 10:35:44.682 21278-21278/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1263)
12-23 10:35:44.682 21278-21278/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
12-23 10:35:44.682 21278-21278/? W/System.err: at android.os.Looper.loop(Looper.java:136)
12-23 10:35:44.682 21278-21278/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5118)
12-23 10:35:44.682 21278-21278/? W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
12-23 10:35:44.682 21278-21278/? W/System.err: at java.lang.reflect.Method.invoke(Method.java:515)
12-23 10:35:44.682 21278-21278/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
12-23 10:35:44.682 21278-21278/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
12-23 10:35:44.682 21278-21278/? W/System.err: at dalvik.system.NativeStart.main(Native Method)
12-23 10:35:44.682 21278-21278/? W/System.err: Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_26 or Xamarin.Android.Platform!
12-23 10:35:44.682 21278-21278/? W/System.err: at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38)
12-23 10:35:44.682 21278-21278/? W/System.err: at android.app.ActivityThread.installProvider(ActivityThread.java:4887)
12-23 10:35:44.682 21278-21278/? W/System.err: … 12 more
12-23 10:35:44.682 21278-21278/? W/System.err: Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform
12-23 10:35:44.682 21278-21278/? W/System.err: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:227)
12-23 10:35:44.682 21278-21278/? W/System.err: at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32)
12-23 10:35:44.682 21278-21278/? W/System.err: … 13 more
12-23 10:35:44.682 21278-21278/? I/Process: Sending signal. PID: 21278 SIG: 9
12-23 10:35:44.682 1237-1241/? D/dalvikvm: GC_CONCURRENT freed 39464K, 23% free 100308K/129392K, paused 4ms+10ms, total 67ms
12-23 10:35:44.682 750-1495/? I/ActivityManager: Process com.mistyrobotics.Companion (pid 21278) has died.
12-23 10:35:44.682 750-1495/? W/ActivityManager: Force removing ActivityRecord{43b2ba58 u0 com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen t15}: app died, no saved state


#3

Found this post about a very similar error. Might be helpful:


#4

Hi, Cameron. I am at about the same point and hitting the same issue.


#5

Actually this post seems to have a better fix:


#6

“Disabe Use Shared Runtime from Project ->Options->Android Options”

Then re-build the app and deploy.

No idea if it will actually help, but sounds like a good thing to try.


#8

Yay for consolidation and solidarity?


#9

I’ve published a new build to Hockey, hopefully resolving the crash


#10

Unfortunately, not. The crashing persists.


#11

I installed the latest version and unfortunately it does not work for me either. Tried on the 2 devices mentioned earlier, and then also installed on a Nexus 9 tablet with Android 7.1.1 and the same crash.

logcat looks the same as before:

12-23 16:45:54.321 18818-18818/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mistyrobotics.Companion, PID: 18818
java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_26 or Xamarin.Android.Platform!
at android.app.ActivityThread.installProvider(ActivityThread.java:6242)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_26 or Xamarin.Android.Platform!
at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38)
at android.app.ActivityThread.installProvider(ActivityThread.java:6239)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:378)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:360)
at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32)
at android.app.ActivityThread.installProvider(ActivityThread.java:6239)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
12-23 16:45:54.330 764-3039/? W/ActivityManager: Force finishing activity com.mistyrobotics.Companion/md5ad6da77d35dc86279ab73711512d008d.SplashScreen
12-23 16:45:54.342 764-779/? I/ActivityManager: Showing crash dialog for package com.mistyrobotics.Companion u0


#12

If you guys can get the TestFlight invites working I would be happy to give things a shot on iOS.


#13

I was able to install and open version 1.0.8 (8) of the Android Misty Companion app on my phone with Android 8.1.0!

I was also able to connect to my Misty! I haven’t been able to set the wifi network on Misty - I get an error each time - but this may be because it’s 5Ghz. Will play around with this and see if I can get it on 2.4Ghz.

The bluetooth connection to my Misty seems to drop very quickly. Driving has only worked a little - it gets stuck on the first command sent - so it ends of driving in a circle until I turn Misty off and on again. I will keep playing!


#14

I should mention for others, I had to manually uninstall the earlier version of the Android app before it would successfully install version 1.0.8(8).


#15

I have now been able to set the network connection on my Misty and send it commands via wifi using the sample index.html file in the Api Client - just like we did at the Robothon! Wohoo!

The documentation doesn’t explicitly mention what port value is supposed to be used. The default value in the index.html is “2010” - which works. This might be worth noting in the docs.


#16

Hey Cameron and/or Krystin,

I think the error you were seeing earlier regarding the API Level for the Companion App is an issue with the Bluetooth API compatibility. On Android 5.0 the Bluetooth LE API completely changed (for the better) and our app uses the new APIs. So while the app will install on 4.4 the Bluetooth APIs are incompatible. I’m looking into solving this issue but we don’t have a great work around as of right now. Sorry about that, I’ll keep you updated on progress.

Thanks!


#17

@justin Perhaps, but I experienced the same error on my devices with Android 8.0.1 and Android 4.4.2. Anyway, the latest version of the companion app seemed to resolve the issue.