我的应用应该有口味(Play商店,亚马逊,三星,黑莓).我认为,只有来自Play商店的应用才能使用Android Wear,因为只有这些设备才能使用Play服务.现在,我不想把我的Wear apk打包成各种风味
@H_404_6@dependencies { wearApp project(':android-wear') }
我怎么能只为Play商店的味道做到这一点?可能吗?
最佳答案
从0.14.3开始,这是可能的.假设您的Google Play风格名为google,您的依赖项条目将被称为googleWearApp:
@H_404_6@productFlavors { google { } } dependencies { googleWearApp project(':wear') }