Android Wear generate two apk

后端 未结 2 1130
闹比i
闹比i 2020-12-18 21:41

I just created my first android wear app. I have two modules, mobile and wear. I have on my mobile module a dependency that points to the wear module as described on the doc

2条回答
  •  有刺的猬
    2020-12-18 22:34

    Two APKs is exactly what is expected: the wear APK is then embedded into the mobile APK as per the packaging Wear apps training. In release builds, the wear APK is then auto-installed onto the user's Android Wear device. However, as per the note on the packaging page:

    This feature doesn't work when you are signing your apps with a debug key when developing. While developing, installing apps with adb install or Android Studio directly to the wearable is required.

提交回复
热议问题