Android Studio 核心中的 FileNotFoundException 异常? [英] FileNotFoundException exception in Android Studio core?

查看:44
本文介绍了Android Studio 核心中的 FileNotFoundException 异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 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

2017/7/30

21:50 FileNotFoundException:进入 fileTemplates//code/Google Test在 C:/Program 中找不到 Fixture SetUp Method.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:-

这里有一些照片.

FileNotFoundException

无效虚拟文件访问异常

我是 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,它没有说明 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 异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆