【问题标题】:Missing feature: WATCH android wear缺少的功能:WATCH android wear
【发布时间】:2020-12-01 13:04:16
【问题描述】:

两天尝试将 hello world 项目部署到 Galaxy Active 2 穿戴设备中。它仍然显示缺少的功能:WATCH。该项目已正确部署到我的手机中,但在选择 wear 时,它显示消息:无法安装应用程序:INSTALL_FAILED_MISSING_SHARED_LIBRARY 我已经阅读了相关问题like here,但无法解决,这里是wear sdk的截图。 移动sdk是:

// mobile sdk used
android {
compileSdkVersion 28

defaultConfig {
    applicationId "com.sensewatch.myapplication"
    minSdkVersion 24
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

【问题讨论】:

    标签: android android-studio sdk android-wear-data-api android-wear-2.0


    【解决方案1】:

    在 AndroidManifest 中删除:

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

    并将用户库(也在 AndroidManifest 中)设置为 false。

    &lt;uses-library android:name="com.google.android.wearable" android:required="false" /&gt;

    【讨论】:

      【解决方案2】:

      Samsung Galaxy Watch Active 2 运行的是 Tizen OS,而不是 Wear OS by Google。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-12-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多