[英]Can't install Android NDK (ndk-bundle) in Android Studio: failed to mkdirs
I am setting up Android development environment on my Windows 7 running machine. 我正在Windows 7运行的计算机上设置Android开发环境。 I installed Android studio 3.3 and other required packages. 我安装了Android Studio 3.3和其他必需的软件包。
while trying to install Android NDK I get following error: 尝试安装Android NDK时出现以下错误:
I downloaded NDK bundle from the above highlighted link and tried to extract the .zip file manually but it also gives error as: 我从上面突出显示的链接下载了NDK捆绑包,并尝试手动提取.zip文件,但它也显示错误消息:
! ! C:\\Users[UserName]\\Downloads\\android-ndk-r18-windows-x86_64.zip: Cannot create folder C:\\Users[UserName]\\Downloads\\android-ndk-r18\\sources\\cxx-stl\\llvm-libc++\\test\\std\\input.output\\stream.buffers\\streambuf\\streambuf.protected C:\\ Users [用户名] \\ Downloads \\ android-ndk-r18-windows-x86_64.zip:无法创建文件夹C:\\ Users [UserName] \\ Downloads \\ android-ndk-r18 \\ sources \\ cxx-stl \\ llvm-libc ++ \\测试\\ STD \\ input.output \\ stream.buffers \\流缓冲\\ streambuf.protected
Access is denied. 访问被拒绝。
! ! C:\\Users[UserName]\\Downloads\\android-ndk-r18-windows-x86_64.zip: Cannot create folder C:\\Users[UserName]\\Downloads\\android-ndk-r18\\sources\\cxx-stl\\llvm-libc++\\test\\std\\input.output\\stream.buffers\\streambuf\\streambuf.protected\\streambuf.put.area C:\\ Users [用户名] \\ Downloads \\ android-ndk-r18-windows-x86_64.zip:无法创建文件夹C:\\ Users [UserName] \\ Downloads \\ android-ndk-r18 \\ sources \\ cxx-stl \\ llvm-libc ++ \\测试\\ STD \\ input.output \\ stream.buffers \\流缓冲\\ streambuf.protected \\ streambuf.put.area
The system cannot find the path specified. 该系统找不到指定的路径。 . 。 . 。 . 。 . 。 . 。 . 。
I have the Admin rights on the machine and I also tried to manually make a folder named 'streambuf.protected' in the directory and it gives me error as 'Access Denied' but I can make a folder with any other name. 我在计算机上拥有管理员权限,我还尝试在目录中手动创建一个名为“ streambuf.protected”的文件夹,但由于“访问被拒绝”而给我错误,但我可以使用任何其他名称创建一个文件夹。
What can be the cause of this and how can I install the Android NDK successfully ? 这可能是什么原因,如何成功安装Android NDK?
Thanks in advance. 提前致谢。 :) :)
After doing some research I found out that my Oraganization is using McAfee VirusScan Enterprise. 经过研究后,我发现Oraganization正在使用McAfee VirusScan Enterprise。 The Access Protection task has User-Defined rule as Cryptolocker - Extension protected which blocks from creating this folder. 访问保护任务的用户定义规则为Cryptolocker-扩展受保护 ,阻止创建此文件夹。
I found more info on it here: https://kc.mcafee.com/corporate/index?id=KB50998&page=content&pmv=print 我在这里找到了更多信息: https : //kc.mcafee.com/corporate/index?id=KB50998&page=content&pmv=print
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.