android studio error : missing feature: WATCH

混江龙づ霸主 提交于 2019-12-05 09:34:51

Having the element

<uses-feature android:name="android.hardware.type.watch" />

in your manifest is taken by Android Studio to mean that this is an Android Wear app - and your D5 watch doesn't run Android Wear. Yes, it's a smartwatch running Android, but Wear is specifically a set of Google-proprietary (not open-source) enhancements to stock Android - and the D5 doesn't have them.

In my testing, flagging it with android:required="false" allowed the app to be deployed to a non-Wear device. I'm not sure why this didn't work for you; perhaps it's to do with Android Studio versions (I'm using v2.3).

But in any case, if you remove that element, the app should deploy on your D5.

You need to change your app to support cpu architecture and so on. I copy a part form the link below. read for more information.

Supporting multiple CPU architectures

When using the Android NDK, you can create a single APK that supports multiple CPU architectures by declaring each of the desired architectures with the APP_ABI variable in the Application.mk file.

For example, here's an Application.mk file that declares support for three different CPU architectures:

APP_ABI := armeabi armeabi-v7a mips APP_PLATFORM := android-9

EDIT:

habeeb mahran

I solved it like this

You just need to remove the following tags from the manifest

<uses-library android:name="com.google.android.wearable" android:required="false" />


tools:ignore="GoogleAppIndexingWarning"


<uses-feature android:name="android.hardware.type.watch" />

I hope you solve problem

Here is the solution, change the edit configuration from app to your Android Wear package name. The Wear emulator will become 'compatible' when you click on the green run icon on Android Studio.

Note: If you have added the WearOS project to an existing Android project, don't forget to change the configuration back to 'app' so that you can run your Android app on the emulator/phone.

Cheers!

In your android project you have 2 apps:

1.Mobile 2.Wearable

Mobile app should be installed on mobile device (phone/tablet) and Wearable app should be installed on Android Wear device.

This message No, missing feature: WATCH means that you're trying to install Wearable app on mobile phone - you shouldn't do that, your mobile device is not a WATCH. So once again: just launch Mobile app on mobile and Wearable app on Android Wear.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!