gpt4 book ai didi

xamarin - 使用 Visual Studio 2019 发布编译 Android apk 的步骤

转载 作者:行者123 更新时间:2023-12-02 17:18:45 25 4
gpt4 key购买 nike

我使用 Visual Studio 2019 - 跨平台 Xamarin C# 完成了我的第一个应用程序。该应用程序运行良好。现在,我想将其编译为apk文件,以便我可以手动将其安装到手机上。我确实将调试更改为发布,然后右键单击 android 文件并选择存档。但是,出现如下错误:

The preprocessor token 'rootnamespace' has been given more than one value. Choosing 'Calculator.Droid' as the value.
The preprocessor token 'assemblyname' has been given more than one value. Choosing 'Calculator.Android' as the value.
The preprocessor token 'fullpath' has been given more than one value. Choosing 'D:\Calculator\Calculator\Calculator.Android' as the value.
The preprocessor token 'outputfilename' has been given more than one value. Choosing 'Calculator.Android.dll' as the value.
The preprocessor token 'filename' has been given more than one value. Choosing 'Calculator.Android.csproj' as the value.
MSB4094: "obj\Release\81\Calculator.Android.dll;obj\Release\81\Calculator.Android.dll" is an invalid value for the "OutputAssembly" parameter of the "Csc" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".

最佳答案

我遇到了同样的错误,只需在项目属性中设置应用程序图标即可解决该问题。

考虑到错误,这没有多大意义,但它对我有用。希望这对某人有帮助。

关于xamarin - 使用 Visual Studio 2019 发布编译 Android apk 的步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56006733/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com