When using Visual Studio 2017 and building a Xamarin project for Android I get the following error:
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. 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.
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.
There are 2 ways to fix it. If you have permission to configure your own McAfee client then I provide instructions below. Otherwise you have to have your McAfee administrator fix it which I show below as well.
This step should be performed on the McAfee Enterprise server by your McAfee Enterprise Admin. 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
then click "Ok"You should now be able to rebuild your Xamarin Forms Android project without receiving the error.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.