Xamarin-此版本不符合Google Play 64位要求

Hel*_*ate 19 visual-studio xamarin.android google-play xamarin.forms

我在Visual Studio中将apk存档并部署到了Google Play商店,但它不允许我继续进行Beta版发布,并且Beta版发布页面上的唯一消息是以下警告:

在此处输入图片说明

单击错误后,出现下一条消息:

在此处输入图片说明

消息中提供的链接仅适用于Android Studio,不适用于Visual Studio,因此我不知道如何解决此问题。

Hel*_*ate 19

最简单的解决方法:

请注意以下屏幕,因为您可能正在寻找复选框,但您不会看到它们,至少在单击最后一个下拉菜单之前不会看到它们。

  1. 确保您已将解决方案更改为“发布”
  2. 右键单击Android项目
  3. 点击“属性”
  4. 选择左侧的“ Android选项”
  5. 在页面底部,点击“高级”
  6. 单击“支持的体系结构”下的下拉列表
  7. 检查armeabi-v7aarm64-v8a

替代(不建议)修复:

为了纠正错误,我卸载了Android项目并编辑了csproj文件。

我从以下更改了发布配置:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugSymbols>false</DebugSymbols>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <AndroidManagedSymbols>true</AndroidManagedSymbols>
    <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
    <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
  </PropertyGroup>
Run Code Online (Sandbox Code Playgroud)

对此:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugSymbols>false</DebugSymbols>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <AndroidManagedSymbols>true</AndroidManagedSymbols>
    <AndroidSupportedAbis Condition=" '$(AndroidSupportedAbis)' == '' ">armeabi-v7a;arm64-v8a</AndroidSupportedAbis>
    <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
    <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
    <AndroidCreatePackagePerAbi>false</AndroidCreatePackagePerAbi>
  </PropertyGroup>
Run Code Online (Sandbox Code Playgroud)

最后

然后在重新构建并重新上传后,我不再收到错误,但我也意识到我仍然无法完成Beta部署。来发现这是因为页面左侧还有其他项目(灰色复选标记)尚未完成。

所以最后,也许我可以忽略该警告,但是至少我还是解决了该问题。

  • VS2017 15.9.12还包括arm64-v8a(我测试过)。 (4认同)
  • 在[VS2019 16.1中的Xamarin]中将添加arm64-v8a(https://github.com/xamarin/xamarin-android/releases/tag/xamarin-android-9.3.0.14#arm64-v8a-by-default-93014) (2认同)