嗨我在将应用程序推送到Moto 360时遇到了问题,我已经按照这个[解决方案] [1]
[1]:Android Wear app not installing through handset并关注Android devolopers页面。我不确定问题是由于使用具有SDK 19的Galaxy Note 2还是因为我遗漏了某些东西。
下面是我的磨损构建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'
}
我的手机构建了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')
}
任何帮助将不胜感激。谢谢。
答案 0 :(得分:0)
问题与三星Galaxy Note 2有关,由于某些原因,它在Android Wear应用程序中处于模拟器模式,它不允许我切换到Watch模式,这意味着它不允许蓝牙连接到了Moto 360.我得到了一个Nexus 5,它全部排序了......
通过在终端中添加以下命令,可以从手机连接到Moto 360 ..
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444
我希望这有帮助..
有关为没有USB连接的设备配置蓝牙调试连接的更多信息,以及有关在日志记录中查找内容的更多说明,请查看Wearable app does not install from mobile apk
有关可能阻止安装应用的可穿戴部分的更多说明,请检查Android Wear app not installing through handset