Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Wearable IllegalStateException #645

Closed
langsmith opened this issue Mar 6, 2018 · 0 comments
Closed

Wearable IllegalStateException #645

langsmith opened this issue Mar 6, 2018 · 0 comments

Comments

@langsmith
Copy link
Contributor

Ticket for @snijsure 's comment about a IllegalStateException for wearable

03-05 14:59:38.477 26163 26163 E AndroidRuntime: Process: com.mapbox.mapboxandroiddemo, PID: 26163
03-05 14:59:38.477 26163 26163 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mapbox.mapboxandroiddemo/com.mapbox.mapboxandroiddemo.MainActivity}: java.lang.IllegalStateException: Could not find wearable shared library classes. Please add <uses-library android:name="com.google.android.wearable" android:required="false" /> to the application manifest
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.ActivityThread.-wrap11(Unknown Source:0)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6494)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Could not find wearable shared library classes. Please add <uses-library android:name="com.google.android.wearable" android:required="false" /> to the application manifest
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.support.wearable.internal.SharedLibraryVersion.verifySharedLibraryPresent(SharedLibraryVersion.java:39)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.support.wearable.activity.WearableActivityDelegate.initAmbientSupport(WearableActivityDelegate.java:137)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.support.wearable.activity.WearableActivityDelegate.onCreate(WearableActivityDelegate.java:34)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.support.wearable.activity.WearableActivity.onCreate(WearableActivity.java:53)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at com.mapbox.mapboxandroiddemo.MainActivity.onCreate(MainActivity.java:31)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:6999)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:6990)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
03-05 14:59:38.477 26163 26163 E AndroidRuntime: 	... 9 more
03-05 14:59:38.480   877  2506 W ActivityManager:   Force finishing activity com.mapbox.mapboxandroiddemo/.MainActivity
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant