Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/182.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android wear-debug.apk显示解析错误_Android_Android Studio_Wear Os - Fatal编程技术网

android wear-debug.apk显示解析错误

android wear-debug.apk显示解析错误,android,android-studio,wear-os,Android,Android Studio,Wear Os,我将配置放置为wear并将其运行到emulator中,然后在我的项目输出文件夹中找到了apk。我发了一封电子邮件,在可穿戴手表上安装时,它显示解析软件包时出错。有人建议我吗 这是我的manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.peterfriese.w

我将配置放置为wear并将其运行到emulator中,然后在我的项目输出文件夹中找到了apk。我发了一封电子邮件,在可穿戴手表上安装时,它显示
解析软件包时出错。
有人建议我吗

这是我的
manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="de.peterfriese.wearablelistviewsample" >

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

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.DeviceDefault" >
        <activity
            android:name=".MyActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

我也遇到了同样的错误,请确保micro应用程序已签名

这是我的可穿戴
build.gradle的一个片段:

android {
    compileSdkVersion 20
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "my.package.name" // same as the main app!
        minSdkVersion 20
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    signingConfigs {
        release {
            storeFile file("path/to/keystore")
            storePassword '...'
            keyAlias '...'
            keyPassword '...'
        }
    }
    buildTypes {
        debug {
            runProguard false
            signingConfig signingConfigs.release
        }
        release {
            runProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }
}