2017-05-03 4 views
0

私のAndroidのプレイコンソールで「Android Wearであなたのアプリを配布する」が無効になっています。「Android Wearであなたのアプリを配布する」が無効にされています

私は2枚のスクリーンショットの画像と3つのapkファイルを追加しました:これはウェアラブルマニフェストファイルである

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.2" 
    publishNonDefault true 

    defaultConfig { 
     applicationId "xxxxx" 
     minSdkVersion 23 
     targetSdkVersion 25 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    productFlavors { 
     wear1 { 
      versionCode 17 
      versionName "17.0" 
     } 
     wear2 { 
      versionCode 18 
      versionName "18.0" 
      minSdkVersion 25 
     } 
    } 
} 

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

:これは私のbuild.gradleファイルである 1つのアプリ 1摩耗1 1着用2

を:

<uses-feature android:name="android.hardware.type.watch" /> 
<application ...> 
    <meta-data 
     android:name="com.google.android.wearable.standalone" 
     android:value="true" /> 
    ... 
</application> 

、これはモバイルGradleのファイルです。

dependencies { 
    compile 'com.google.android.support:wearable:2.0.0' 
    compile 'com.google.android.gms:play-services-wearable:10.0.1' 
    ... 
    wearApp project(path:':Wearable', configuration: "wear1Release") 
} 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.2" 

    defaultConfig { 
     applicationId = "xxx" 
     minSdkVersion 18 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
    } 
    ... 
} 

なぜ無効になっていますか?

答えて

0

モバイルアプリのバージョンコードは、ウェアラブルウェアのバージョンコードと一致する必要があります。

+0

ありがとうございますが、同じコードで2つのapkを挿入するにはどうすればよいですか? 2番目が最初の –

関連する問題