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

Stack Overflow | Jean Carlos | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Run App with Wear app without watch

    Stack Overflow | 6 months ago | Jean Carlos
    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

    Root Cause Analysis

    1. 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

      at android.support.wearable.activity.WearableActivity.initAmbientSupport()
    2. android.support.wearable
      WearableActivity.onCreate
      1. android.support.wearable.activity.WearableActivity.initAmbientSupport(WearableActivity.java:187)
      2. android.support.wearable.activity.WearableActivity.onCreate(WearableActivity.java:70)
      2 frames
    3. com.mundocompilado.sesamo
      MainActivity.onCreate
      1. com.mundocompilado.sesamo.MainActivity.onCreate(MainActivity.java:25)
      1 frame
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6259)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
      3 frames