【问题标题】:Increse android app compatibility on google play store for new aps为新应用增加 google play store 上的 android 应用兼容性
【发布时间】:2019-10-16 17:05:58
【问题描述】:

我最近(几周前)在 Google Play (https://play.google.com/store/apps/details?id=com.kfm.Cugopol) 上发布了一个应用程序并与我的朋友分享。不幸的是,他们的许多设备与应用程序版本不兼容。我用谷歌搜索了一个解决方案,发现谷歌改变了他们的政策,新的应用程序只能安装在 Android 8.0 及更高版本上。有什么方法可以使应用程序与这些设备兼容。

在谷歌播放控制台上,我得到了 3445/13000 台设备,这还不错,但我想增加这个数字。我尝试在 Unity 中更改播放器设置中的 API 级别并更改 android 清单以使其与其他屏幕尺寸兼容,但没有区别。提前感谢所有答案。

这是我的清单文件。未注释时,注释部分实际上减少了兼容设备的数量。

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.kfm.Cugopol" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal">
  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
  <!-- compatible-screens>
    <all small size screens
    <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />
    <all small size screens
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
    <all small size screens
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />
    <all normal size screens
    <screen android:screenSize="xlarge" android:screenDensity="ldpi" />
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
  </compatible-screens> !-->
  <application android:theme="@style/UnityThemeSelector" android:icon="@mipmap/app_icon" android:label="@string/app_name">
    <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:screenOrientation="sensorPortrait" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="false">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
      <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
      <meta-data android:name="android.notch_support" android:value="true" />
    </activity>
    <meta-data android:name="unity.build-id" android:value="227e5310-1392-471e-8e15-ce7701fd0b5e" />
    <meta-data android:name="unity.splash-mode" android:value="0" />
    <meta-data android:name="unity.splash-enable" android:value="True" />
    <meta-data android:name="notch.config" android:value="portrait|landscape" />
  </application>
  <uses-feature android:glEsVersion="0x00020000" android:required="false"/>
  <uses-feature android:name="android.hardware.vulkan" android:required="false" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
  <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
  <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
</manifest>¸

Here are my player settings

【问题讨论】:

  • 您选择的最低 api 级别是多少?
  • 你可以在链接上看到它。最低 API 为 4.1(16),目标 API 最高安装。

标签: android unity3d google-play


【解决方案1】:

目标架构中启用所有三个ARMv7ARM64x86 以针对几乎所有设备,因此您会失去很多用户。

【讨论】:

  • 我也试过了,但我的构建失败并显示此错误:UnityEditor.BuildPlayerWindow+BuildMethodException: UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] 在 C 中出现 3 个错误: \buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 在 UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] 在 C:\buildslave\unity\build\Editor\Mono\ BuildPlayerWindowBuildMethods.cs:95 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
  • 我设法通过安装自定义 NDK(不使用统一安装的 Unity)来修复错误。现在支持的设备数量为 12k/13k,这是我所希望的。感谢您的帮助。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-30
相关资源
最近更新 更多