简体   繁体   English

Android Wear应用程序未推送到Moto 360

[英]Android wear app not being pushed to Moto 360

Hi im having problems pushing an an app to the Moto 360, I have followed this [Solution][1] 嗨,在将应用程序推送到Moto 360时遇到问题,我一直遵循此[解决方案] [1]

[1]: Android Wear app not installing through handset and followed the Android devolopers pages. [1]: Android Wear应用未通过手机安装,并遵循了Android devolopers页面。 Im not sure if the the problem is due to using Galaxy Note 2 which has SDK 19 or if im missing something. 我不确定问题是否是由于使用具有SDK 19的Galaxy Note 2或我是否缺少某些东西。

Below is my wear build gradle 以下是我的磨损量

apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "20.0.0"

defaultConfig {
    applicationId ""
    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:1.0.0'
compile 'com.google.android.gms:play-services-wearable:6.1.71'
}

and my handset build gradle 和我的手机建立了摇篮

apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "20.0.0"

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

dependencies {
// compile 'com.android.support:appcompat-v7:18.0.+'
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile 'com.google.android.support:wearable:+'
//compile 'com.google.android.gms:play-services-wearable:+'
compile files('libs/gson-2.3.jar')
compile files('libs/jericho-html-3.3.jar')
compile files('libs/jsoup-1.8.1.jar')
compile files('libs/android-rss.jar')
compile files('libs/volley.jar')
compile files('libs/localytics-2.6.jar')
compile 'com.android.support:appcompat-v7:21.0.0'
compile project(':facebook')
compile 'com.android.support:support-v4:20.0.+'
compile files('libs/localytics.jar')
wearApp project(':wear')

}

Any help would be gratefully appreciated. 任何帮助将不胜感激。 Thank you . 谢谢 。

The problem was related to Samsung Galaxy Note 2, for some reason it was in Emulator mode on the Android wear app and it wouldn't allow me to switch to the Watch mode, which meant it wouldn't allow a bluetooth connection to the Moto 360. I got a Nexus 5 and it was all sorted.. 该问题与Samsung Galaxy Note 2有关,由于某种原因,它处于Android Wear应用程序的仿真器模式下,并且不允许我切换到Watch模式,这意味着它不允许与Moto的蓝牙连接360.我有一个Nexus 5,而且一切都完成了。

By adding the following commands in the terminal allows the connection to the Moto 360 from your phone.. 通过在终端中添加以下命令,可以从您的手机连接到Moto 360。

adb forward tcp:4444 localabstract:/adb-hub adb connect localhost:4444

I hope this helps.. 我希望这有帮助..

For more information on configuring a bluetooth debug connection for devices without USB connection and some more instructions on what to look for in logging also check Wearable app does not install from mobile apk 有关为没有USB连接的设备配置蓝牙调试连接的更多信息,以及有关在日志中查找内容的更多说明,请检查是否未从移动apk安装可穿戴应用程序

And for more instructions on what could prevent the wearable part of an app to be installed also check Android Wear app not installing through handset 有关如何阻止应用的可穿戴部分安装的更多说明,还请检查未通过手机安装Android Wear应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM