故障设置的Hello,World观看机器人工作室的应用 [英] Trouble setting up Hello, World watch app in Android Studio

查看:113
本文介绍了故障设置的Hello,World观看机器人工作室的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当部署在Android的Studio中包含的Hello,World观看应用的磨损版本,我得到这个错误: 失败[INSTALL_FAILED_OLDER_SDK]

When deploying the wear version of the included Hello, World watch app in Android Studio I get this error: Failure [INSTALL_FAILED_OLDER_SDK]

更新:删除有关从reddit的尝试后的L砍死版本的细节,这是不是对我一个解决方案,它可以创造更多的混乱。

Update: Removing details about trying a hacked version of L from the Reddit post as that was not a solution for me and it may have created more confusion.

移动/ build.gradle

mobile/build.gradle

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 20
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "com.example.erikbabel.myapplication"
        minSdkVersion 15
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    wearApp project(':wear')
    compile 'com.android.support:appcompat-v7:19.+'
    compile 'com.google.android.gms:play-services-wearable:+'
}

磨损/ build.gradle

wear/build.gradle

apply plugin: 'com.android.application'


android {
    compileSdkVersion 20
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "com.example.erikbabel.myapplication"
        minSdkVersion 20
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.support:wearable:+'
    compile 'com.google.android.gms:play-services-wearable:+'
}

一切是在新项目路线不变。我对我的摩托超4.4和LG摹手表运行。

Everything else is untouched from the New Project directions. I'm running on my Moto Ultra 4.4 and the LG G watch.

推荐答案

的错误[INSTALL_FAILED_OLDER_SDK]是因为我部署的磨损摇篮建到手机(其中有一个不兼容的API)。为了部署可穿戴摇篮打造的LG摹手表,你必须启用蓝牙调试和您的ADB连接到手表。的然后选择在选择设备对话框手表。

The error [INSTALL_FAILED_OLDER_SDK] is because I was deploying the wear gradle build to the phone (which has an incompatible api). In order to deploy the wearable gradle build to the LG G watch, you have to enable bluetooth debugging and connect your adb to the watch. Then select the watch in the Choose Device dialog.

这篇关于故障设置的Hello,World观看机器人工作室的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆