2017-04-10 8 views
0

私はアンドロイドでアプリケーションを作成しました。主な目標は次のとおりです。ユーザーは自分のGoogleアカウントでログインし、NFCタグをスキャンし、ユーザーのログインとタグの情報をvolleyライブラリと応答を得る。
AndroidスタジオとUSBデバッグを使用していた時、すべてうまく動いていました。私はGoogle Playストアにアプリを置いたし、それは自分のp9 LiteやNFCの他の携帯電話と互換性がない。だから私はアプリをダウンロードすることすらできません。

これは、Google Playでのスクリーンショットです:enter image description hereAndroidアプリケーションが自分のデバイスと互換性がありません

そして、ここでは私のAndroidのマニフェストです:

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.3.1' 
     classpath 'com.google.gms:google-services:3.0.0' 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

そしてGradleのビルドアプリ:ここ

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="some.package.name"> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.NFC" /> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 
    <uses-feature android:name="android.nfc"/> 
    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:roundIcon="@mipmap/ic_launcher_round" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".MainActivity" 
      android:screenOrientation="portrait"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 

      <intent-filter> 
       <action android:name="android.nfc.action.NDEF_DISCOVERED" /> 
       <category android:name="android.intent.category.DEFAULT" /> 
       <data android:mimeType="text/plain" /> 
      </intent-filter> 
      <meta-data 
       android:name="android.nfc.action.TECH_DISCOVERED" 
       android:resource="@xml/nfc_tech_filter" /> 
     </activity> 
    </application> 
</manifest> 

は私のGradleのプロジェクトをビルドもある

apply plugin: 'com.android.application' 

android { 
    signingConfigs { 
     config { 
      keyAlias 'key0' 
      storeFile file('C:/AndroidKey/RandomKey.jks') 
      keyPassword 'randomKey' 
      storePassword 'randomPassword' 
     } 
    } 
    compileSdkVersion 25 
    buildToolsVersion "25.0.2" 
    defaultConfig { 
     applicationId "someId" 
     minSdkVersion 15 
     targetSdkVersion 25 
     versionCode 3 
     versionName "1.02" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
      signingConfig signingConfigs.config 
     } 
     debug { 
      signingConfig signingConfigs.config 
     } 
    } 
} 

dependencies { 
    compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3' 
    compile 'com.android.volley:volley:1.0.0' 
    compile 'com.yarolegovich:lovely-dialog:1.0.5' 
    compile 'hanks.xyz:htextview-library:0.1.5' 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:25.2.0' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.google.android.gms:play-services-auth:9.8.0' 
    testCompile 'junit:junit:4.12' 
} 
    apply plugin: 'com.google.gms.google-services' 

すべて動作しますUSBで接続しても問題ありませんが、Google Playストアからアプリケーションをダウンロードすることすらできません。
その場合、私は何ができますか?感謝と挨拶。

EDIT: 私は変更しました
<uses-feature android:name="android.nfc"/><uses-feature android:name="android.hardware.nfc"/>


にまだ同じ状況:
enter image description here

EDIT:私のデバイスは、NFCを持っており、私はオプションでクリックしたときに互換性のあるデバイスを表示します私のアプリのためにそこにあります。 enter image description here

+1

あなたのデバイスにはnfcがないためです。 '' – shmakova

答えて

0

わかりましたので、私は答えは、マニフェストに紛らわしい質問に対するとても残念ではありません、ヒントのためのみんなありがとう、解決策を見つけた:そのようなあなたのuses-featureを変更。ユーザーは、Googleが

そう際Playプライベートチャンネルを更新できるように
Private apps in company

は、私はGoogle Playデベロッパーコンソールの管理者ではないよ、と所有者は

の権利をチェックしませんでした会社のアプリケーションを開発するには、このオプションが必要です。 ヘルプと挨拶をありがとう。

編集:このデバイスには、アプリをインストールするための仕事用プロファイルが必要です。現在は機能しています。

1

正しいタグは、あなたのアプリにもNFCチップを持っていないデバイス上で動作する場合、あなたは上記のタグにandroid:required="false"を追加する必要があります

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

です。

1

あなたのアプリは、NFCモジュールなしのデバイスで動作する場合は、あなたがそのようなあなたのuses-featureを変更する必要があります。

<uses-feature android:name="android.hardware.nfc" android:required="false" /> 

あなたのアプリは、NFCモジュールなしのデバイスでは動作しない場合は、NFC対応機器を持っている必要がありますし、

<uses-feature android:name="android.hardware.nfc" /> 
関連する問題