2017-05-16 12 views
1

他にも同様の質問があることは知っていますが、いずれも直接この問題に対処していません。なぜAndroidアプリはChromebookで「サポート対象外」ですか?

私のAndroidManifest.xmlがそれで、このセクションがあります。

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" /> 
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
<uses-feature android:name="android.hardware.location.gps" /> 

どのように私はそれらの間で何がサポートされていないとして、リストのChromebookを伝えるプレイコンソールが生じている伝えることができますか?それとも完全に何か他のものであれば?

* UPDATE *

私は私のマニフェストはこのように見えたポイントになった、とコンソールはまだサポートされているデバイスとしてのChromebookを示すものではありませんでしたので、私は途方に暮れてよ再生。

<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true"> 
    <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize"> 
     <intent-filter android:label="@string/launcher_name"> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <receiver android:name="cordova.plugins.Diagnostic$LocationProviderChangedReceiver"> 
     <intent-filter> 
      <action android:name="android.location.PROVIDERS_CHANGED" /> 
     </intent-filter> 
    </receiver> 
    <receiver android:name="cordova.plugins.Diagnostic$NFCStateChangedReceiver"> 
     <intent-filter> 
      <action android:name="android.nfc.action.ADAPTER_STATE_CHANGED" /> 
     </intent-filter> 
    </receiver> 
</application> 
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" /> 
<uses-feature android:name="android.hardware.location.gps" required="false" /> 
<uses-feature android:name="android.hardware.touchscreen" required="false" /> 
<uses-feature android:name="android.hardware.location.network" required="false" /> 
<uses-feature android:name="android.hardware.wifi" required="false" /> 

答えて

2

すべてのChromebookにタッチスクリーンまたはGPSが搭載されているわけではありません。これらはオプションである必要があります。

は、あなたが存在していないGPSを考慮して、あなたのコードを変更する必要があり、この

<uses-feature android:name="android.hardware.touchscreen" required="false" /> 
<uses-feature android:name="android.hardware.location.gps" required="false" /> 

を試してみてください。

+0

私はこれをionic2/cordovaで行う方法に苦労しています。私の最善の努力は 'Element uses-feature#android.hardware.location.gps duplicated'ビルドエラーを引き起こしています。そして、私はこれがcordova-plugin-geolocationプラグインの宣言のために起きていると確信しています。 – vicatcu

+0

[this](http://stackoverflow.com/a/29467663/1790644)はまったく役に立ちますか? –

+0

私はphonegapではなくionic2を使用しています。私のマニフェストには、電話やカメラの問題を暗示するものは何もありません。 – vicatcu

関連する問題