Mobile Android Wear应用程序未从手机软件包安装

Mobile Android Wear应用程序未从手机软件包安装,mobile,installation,wear-os,Mobile,Installation,Wear Os,是的,我遵循了所有其他说明和链接。我的可穿戴应用肯定是与移动应用一起打包的,但没有安装 mobile.apk的调试版本为4.9MB,wear.apk的调试版本为1.9MB。当我构建签名发布版本时,mobile.apk是5.8MB,所以我相信打包正在进行 当我在手持设备上安装mobile.apk的adb时,我在手持设备的logcat中得到以下错误(应用程序包是com.pipperpublishing.refwatch,请注意第二个错误中奇怪的refwatch-1参考): 还有我的“穿”build.

是的,我遵循了所有其他说明和链接。我的可穿戴应用肯定是与移动应用一起打包的,但没有安装

mobile.apk的调试版本为4.9MB,wear.apk的调试版本为1.9MB。当我构建签名发布版本时,mobile.apk是5.8MB,所以我相信打包正在进行

当我在手持设备上安装mobile.apk的
adb
时,我在手持设备的logcat中得到以下错误(应用程序包是com.pipperpublishing.refwatch,请注意第二个错误中奇怪的
refwatch-1
参考):

还有我的“穿”
build.gradle

apply plugin: 'com.android.application'


android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.pipperpublishing.refwatch"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 203
    versionName "0.2.03"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
 }

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-identity:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.google.android.gms:play-services-auth:8.4.0'
 }
 apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
    applicationId "com.pipperpublishing.refwatch"
    minSdkVersion 21
    targetSdkVersion 23
    versionCode 203
    versionName "0.2.03"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    debug {
        debuggable true
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.3.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:support-v13:23.1.1'
compile 'com.google.android.gms:play-services-wearable:8.4.0'
compile 'com.google.android.gms:play-services-auth:8.4.0'
}
apply plugin: 'com.google.gms.google-services'    

只有使用release.apk文件,磨损应用程序才会自动安装。使用调试键无法工作


如果应用程序是用释放密钥签名的,那么请检查该应用程序是否已经存在于android wear设备中

只有使用release.apk文件,磨损应用程序才会自动安装。使用调试键无法工作


如果应用程序是用释放密钥签名的,那么请检查该应用程序是否已经存在于android wear设备中

因此,在多次卸载和重新安装之后,在不更改任何代码的情况下,安装现在可以正常工作了。有时我必须“重新同步应用程序”才能看到手机上的变化。整个过程似乎相当笨拙。

因此,在多次卸载和重新安装后,但没有更改任何代码,安装现在可以正常工作。有时我必须“重新同步应用程序”才能看到手机上的变化。整个过程似乎相当繁琐。

您是否通过发布密钥对应用程序进行签名?我在gradle文件中没有看到这一点;请注意,两个组件上应使用相同的ky。此外,要确保应用程序包含在内,请打开生成的手机apk,并确保磨损apk存在。最后,确保你的手表没有安装wear应用程序的调试版本;如果是,请先删除调试版本。您是否使用发布密钥对应用程序进行签名?我在gradle文件中没有看到这一点;请注意,两个组件上应使用相同的ky。此外,要确保应用程序包含在内,请打开生成的手机apk,并确保磨损apk存在。最后,确保你的手表没有安装wear应用程序的调试版本;如果是这样,首先删除debug version.AFAICT。系统使用磨损数据层来同步可穿戴APK,这远远不是防弹的。特别是,我有过许多实例,他们的系统正在安装旧版本的Wear APK。它有时有助于完全清除数据层;请参阅AFAICT的说明。该系统使用磨损数据层来同步可穿戴APK,而且它远不是防弹的。特别是,我有过许多实例,他们的系统正在安装旧版本的Wear APK。它有时有助于完全清除数据层;请参阅上的说明
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
    applicationId "com.pipperpublishing.refwatch"
    minSdkVersion 21
    targetSdkVersion 23
    versionCode 203
    versionName "0.2.03"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    debug {
        debuggable true
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.3.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:support-v13:23.1.1'
compile 'com.google.android.gms:play-services-wearable:8.4.0'
compile 'com.google.android.gms:play-services-auth:8.4.0'
}
apply plugin: 'com.google.gms.google-services'