简体   繁体   English

无法归档 Xamarin.Forms 应用程序

[英]Can't Archive a Xamarin.Forms Application

I'm trying to build a distribution-ready apk (following this guide ) for a project I've been working on recently using Xamarin.Forms and Visual Studio 2019. However, i can't get past the Archiving Stage because i keep getting below error as stated by Visual Studio itself:我正在尝试为我最近使用 Xamarin.Forms 和 Visual Studio 2019 开展的项目构建一个可分发的 apk(遵循本指南)。但是,我无法通过存档阶段,因为我不断获得Visual Studio 本身所述的以下错误:

Cannot create the archive file because the copy of mdbs files failed.
Could not find a part of the path ...

在此处输入图像描述

Its worth noting that i have not changed anything yet on the project properties and the solution is stored on a relatively short path of D:\Repository\QR Code Attendance .值得注意的是,我还没有对项目属性进行任何更改,并且解决方案存储在相对较短的D:\Repository\QR Code Attendance路径上。 If i am to guess, this is an issue with PATH limited to 255 characters?如果我猜的话,这是 PATH 限制为 255 个字符的问题吗? If so, how would i be able to overcome it?如果是这样,我将如何克服它?

Just copying the apk from the \Debug Folder and installing it on a Android Phone doesn't work.仅从 \Debug 文件夹复制 apk 并将其安装在 Android 手机上是行不通的。 The app just closes as soon as it starts.该应用程序一启动就关闭。

The Archives are not in the solution folder.档案不在解决方案文件夹中。 Your Archives folder is in C:/User/Administrator/App Data/Local/Xamarin/Mono for Android/Archives .您的 Archives 文件夹位于C:/User/Administrator/App Data/Local/Xamarin/Mono for Android/Archives中。 You shoud change it to something shorter, like C:/Archives .你应该把它改成更短的,比如C:/Archives This can be done in Tools -> Options -> Xamarin -> Android Settings -> Archives Location .这可以在Tools -> Options -> Xamarin -> Android Settings -> Archives Location中完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM