简体   繁体   English

Xamarin Forms - Java.Interop.lz4 访问被拒绝错误

[英]Xamarin Forms - Java.Interop.lz4 Access Denied Bug

Visual Studio 2019 - Xamarin Forms App Build Bug Visual Studio 2019 - Xamarin Forms 应用程序构建错误

I opened the linking feature in my Xamarin forms project and got this error while compiling我在 Xamarin 表单项目中打开了链接功能,但在编译时出现此错误

If I don't open visual studio as an administrator, it doesn't work.如果我不以管理员身份打开 Visual Studio,它就不起作用。

How can I solve the error without opening Administrator如何在不打开管理员的情况下解决错误

System.UnauthorizedAccessException: Access to the path 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\Common7\\IDE\\ReferenceAssemblies\\Microsoft\\Framework\\MonoAndroid\\v1.0\\Java.Interop.dll.lz4' is denied.

This issue has been reported, you can track the status here: https://developercommunity.visualstudio.com/content/problem/1120933/xabld7019-systemunauthorizedaccessexception-access.html此问题已报告,您可以在此处跟踪状态: https : //developercommunity.visualstudio.com/content/problem/1120933/xabld7019-systemunauthorizedaccessexception-access.html

Switching to preview channel (8.8) solved this issue for me.切换到预览频道 (8.8) 为我解决了这个问题。

I solved the problem using the answer for this question.我使用这个问题的答案解决了这个问题。 Archiving Xamarin Android App gives error XABLD7019 存档 Xamarin Android 应用程序会出现错误 XABLD7019

Its a workaround, but solved my problem while the update is not ready.它是一种解决方法,但在更新尚未准备好时解决了我的问题。

add false to the release section of your csproj.在 csproj 的 release 部分添加 false。 (I've confirmed this one works) But it may result in increased apk sizes. (我已经确认这个有效)但这可能会导致 apk 大小增加。

Thanks for answers感谢您的回答

Fixed with vstudio 16.8 Update使用 vstudio 16.8 更新修复

我也有这个问题,我通过以管理员权限打开 Visual Studio 来解决它

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

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