“Default activity not found” for a wearable app created with Android Studio template

后端 未结 3 622
天命终不由人
天命终不由人 2021-01-03 21:14

I\'ve created a wear app and used the Android Studio template to create it and haven\'t made any changes other than to drag and drop a button onto the MainActivity of the we

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 22:03

    I also had an issue similar to this after adding a Watchface, and thought I would chime in with what fixed it for me.

    In Android Studio 2.2.1: Run -> Edit -> Your App -> watchface -> General -> Launch Options -> Launch: Nothing

    By default, mine was selected to run the default activity, which is incorrect for a watch face.

提交回复
热议问题