问题描述
我刚刚安装了Android Studio 2.3.3并创建了一个新项目.然后发生错误.这是事件日志
I had just installed Android Studio 2.3.3 and created a new project.Then the error occurred.Here is the Event Log
21:50 FileNotFoundException:条目fileTemplates//code/Google Test 在C:/Program中找不到夹具设置方法.cc.ft 文件/Android/Android Studio/lib/idea.jar
21:50 FileNotFoundException: Entry fileTemplates//code/Google Test Fixture SetUp Method.cc.ft not found in C:/Program Files/Android/Android Studio/lib/idea.jar
21:50 Gradle同步开始
21:50 Gradle sync started
21:50 InvalidVirtualFileAccessException:访问无效的虚拟 文件:file://C:/Android/SDK/platforms/android-26/data/res; 原创:182;找到:-
21:50 InvalidVirtualFileAccessException: Accessing invalid virtual file: file://C:/Android/SDK/platforms/android-26/data/res; original:182; found:-
这是一些照片.
InvalidVirtualFileAccessException
我是Android Studio的新手,如果有人帮助,那就太好了.
I'm new to Android Studio.It'll be great if someone helps.
推荐答案
这似乎与我遇到的问题相同.这是Android Studio的新安装.我只是想学习构建一个应用程序,但甚至无法创建一个新的类.
This looks like the same problem I had. It was a new install of Android Studio. I'm just trying to learn to build an app but couldn't even create a new class.
原来,我已经在32位计算机上安装了64位版本.在我的辩护中,有一个绿色的大下载按钮在Windows上显示该按钮,直到向下滚动waaaaay时,它才会显示64/32位.
It turned out that I had installed the 64 bit version on a 32 bit machine. In my defense, there's a big green download button that says its for windows, it says nothing about 64/32 bit until you scroll waaaaay down the page.
我找到了答案此处
修复步骤: 1.卸载android studio(但不卸载SDK) 2.在我发现64位的同一页上下载32位版本一个.
3.向下滚动页面以查找它. 4.解压缩下载的文件,然后将其移动到programs目录中. 5.通过打开文件\ Program Files \ Android \ android-studio \ bin \ studio.exe
Steps to fix: 1. uninstall android studio (but not the SDK) 2. download the 32 bit version from the same page where I found the 64 bit one.
3. Scroll down the page to find it. 4. unzip the downloaded file and move it into the programs directory. 5. launch android studion by opening the file \Program Files\Android\android-studio\bin\studio.exe
这篇关于Android Studio核心中的FileNotFoundException异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!