简体   繁体   English

访问resources.apk.bk路径被拒绝

[英]Access to the path resources.apk.bk is denied

When using Visual Studio 2017 and building a Xamarin project for Android I get the following error:使用 Visual Studio 2017 并为 Android 构建 Xamarin 项目时,出现以下错误:

access to the path resources.apk.bk is denied

I've been getting this error for over 4 years and I know it's related to McAfee Enterprise but I still can't seem to fix it and the web has been no help.我已经收到这个错误超过 4 年了,我知道它与 McAfee Enterprise 相关,但我似乎仍然无法修复它,网络也没有帮助。 Every once in a while I take some time out and try again to fix it.每隔一段时间,我就会抽出一些时间并再次尝试修复它。 Persistence paid off and I finally found the fix shown below.坚持得到了回报,我终于找到了如下所示的修复方法。

You have to exclude resources.apk.bk from McAfee Enterprise OnAccess scanning but the trick is to configure it properly and the method is confusing.您必须从 McAfee Enterprise OnAccess 扫描中排除 resources.apk.bk,但诀窍是正确配置它并且方法令人困惑。

I struggled with this because I kept adding resources.apk.bk to the "On-Demand" exclusions but that won't work, you have to add it to the "On-Access" exclusions.我为此苦苦挣扎,因为我一直将 resources.apk.bk 添加到“按需”排除项中,但这不起作用,您必须将其添加到“按访问”排除项中。

There are 2 ways to fix it.有 2 种方法可以修复它。 If you have permission to configure your own McAfee client then I provide instructions below.如果您有权配置自己的 McAfee 客户端,那么我将在下面提供说明。 Otherwise you have to have your McAfee administrator fix it which I show below as well.否则,您必须让您的迈克菲管理员修复它,我也在下面显示。

McAfee Admin Instructions:迈克菲管理员说明:

This step should be performed on the McAfee Enterprise server by your McAfee Enterprise Admin.此步骤应由您的 McAfee Enterprise 管理员在 McAfee Enterprise 服务器上执行。 Add resources.apk.bk to the "On-Access" exclusions, make sure they know it's for "On-Access" and not "On-Demand".将 resources.apk.bk 添加到“On-Access”排除项中,确保他们知道它用于“On-Access”而不是“On-Demand”。

Fix you can do yourself if you have permission如果您获得许可,您可以自己修复

  1. Right-Click on the McAfee icon in your task bar and click on "McAfee Endpoint Security".右键单击任务栏中的 McAfee 图标,然后单击“McAfee Endpoint Security”。
  2. Assuming it's password protected, login with the admin password.假设它受密码保护,请使用管理员密码登录。
  3. In the green bar near the top click the text "Threat Prevention"在靠近顶部的绿色栏中,单击文本“威胁防护”
  4. Click "Show Advanced" button on the right单击右侧的“显示高级”按钮
  5. Click "On-Access Scan" on the left单击左侧的“按访问扫描”
  6. Scroll down a little further until you see the Exclusions box向下滚动一点,直到看到排除框
  7. Click Add点击添加
  8. within the top input box type in resources.apk.bk then click "Ok"在顶部输入框中输入resources.apk.bk然后点击“确定”
  9. Click "Apply" at the top right.点击右上角的“应用”。

You should now be able to rebuild your Xamarin Forms Android project without receiving the error.您现在应该能够重建您的 Xamarin Forms Android 项目而不会收到错误消息。

NOTE!笔记!

Keep in mind, if you configure your McAfee yourself, depending on how your McAfee Enterprise is setup your configuration may be overwritten at any moment, because most McAfee Enterprise setups overwrite your own configurations every 5 minutes because they want to make sure everyone is applying a policy that management requires.请记住,如果您自己配置 McAfee,根据 McAfee Enterprise 的设置方式,您的配置可能随时被覆盖,因为大多数 McAfee Enterprise 设置每 5 分钟覆盖一次您自己的配置,因为它们希望确保每个人都在应用管理要求的政策。

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

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