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

后端 未结 3 648
天命终不由人
天命终不由人 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 21:47

    The sample code for the Watch Face contains the following comment

    Important Note: Because watch face apps do not have a default Activity in their project, you will need to set your Configurations to "Do not launch Activity" for both the Wear and/or Application modules. If you are unsure how to do this, please review the "Run Starter project" section in the Google Watch Face Code Lab: https://codelabs.developers.google.com/codelabs/watchface/index.html#0

提交回复
热议问题