Android Wear app not installing through handset

后端 未结 8 1864
南旧
南旧 2020-11-29 07:42

I\'m trying to get a wearable app installed through an Android handset using the \'Package with Android Studio method\' found here but it\'s not working. The apk is never in

8条回答
  •  遥遥无期
    2020-11-29 08:09

    Just wanted to add something that I haven't seen in many answers.

    You have to match the applicationId in your handheld app and wear app.

    I previously thought that you needed to have in both the handheld and watch manifest, with add: android:required="true" for the wearable manifest and android:required="false" for the device.

    THIS IS FALSE. You do not need the above in the handheld manifest. In fact with Wear 2.0 coming up Google has made some changes that will not allow you to upload any apk with minSdk lower than 23 if is in your handheld app. Sorry for any confusion.

提交回复
热议问题