Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从Xamarin Android生成应用程序包(可以上传到Google Play Store)?_Android_Xamarin_Bundle_Android App Bundle - Fatal编程技术网

如何从Xamarin Android生成应用程序包(可以上传到Google Play Store)?

如何从Xamarin Android生成应用程序包(可以上传到Google Play Store)?,android,xamarin,bundle,android-app-bundle,Android,Xamarin,Bundle,Android App Bundle,我必须在Google Play上发布一个Xamarin Android应用程序,格式为.aab(Android应用程序包)。 然而,当我试图上传应用程序包时,谷歌抛出了以下错误 Failed to run aapt dump badging: ERROR: dump failed because no AndroidManifest.xml found .aab文件是使用本教程中介绍的msbuild工具生成的 当我用winrar手动将AndroidManifest.xml放入.aab文件中

我必须在Google Play上发布一个Xamarin Android应用程序,格式为.aab(Android应用程序包)。 然而,当我试图上传应用程序包时,谷歌抛出了以下错误

Failed to run aapt dump badging: 
ERROR: dump failed because no AndroidManifest.xml found
.aab文件是使用本教程中介绍的msbuild工具生成的

当我用winrar手动将AndroidManifest.xml放入.aab文件中并用jarsigner再次签名时,它也不起作用。对于VisualStudio生成的样例Xamarin项目,它也不适用

这是解压后的AAB文件的文件夹结构,AndroidManifest.xml位于/base/manifest下

├───base
│   ├───assets
│   ├───dex
│   ├───lib
│   ├───manifest
│   │   └───AndroidManifest.xml
│   ├───res
│   └───root
│       ├───assemblies
│       ├───com
│       ├───error_prone
│       ├───fabric
│       ├───HACKED-META-INF
│       │   └───services
│       ├───jsr305_annotations
│       └───third_party
│
└───META-INF

好问题,我也很好奇。你现在不能使用APK有什么原因吗?谢谢,APK很好用。只是每次我上传的时候谷歌都会抱怨(还有我的客户)。但是,使用APK确实不能为最终用户提供尽可能好的服务。请使用zip工具打开.AAB,告诉我其中是否有名为AndroidManifest.xml的文件,以及文件的位置。@Pierre:我编辑了我的文章,请查看文件夹结构,看起来不错。尝试使用bundletool在本地生成APK。如果这在没有警告或错误消息的情况下工作,那么您可能需要联系Play开发者支持。