解决Android Studio安装后运行出错的两个问题:dose not...和Internal error...

1、dose not point to a valid jvm installation出错问题

按照以下方法设置一定可以不会出现这个错误。

我的JDK安装路径如下:

C:\Program Files\Java\jdk1.8.0_51

鼠标右键点击属性---->高级系统属性设置---->高级---->环境变量---->在系统变量里新建--->

变量名:JAVA_HOME

变量值 : C:\Program Files\Java\jdk1.8.0_51\

2、错误如图:

解决方法:

来到Android Studio的安装路径下,我的是以下安装路径:

打开idea.properties这个文件

# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.AndroidStudio.2/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.AndroidStudio.2/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=2500

#---------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb).
# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
#---------------------------------------------------------------------
idea.cycle.buffer.size=1024

#---------------------------------------------------------------------
# Configure if a special launcher should be used when running processes from within IDE.
# Using Launcher enables "soft exit" and "thread dump" features
#---------------------------------------------------------------------
idea.no.launcher=false

#---------------------------------------------------------------------
# To avoid too long classpath
#---------------------------------------------------------------------
idea.dynamic.classpath=false

#---------------------------------------------------------------------
# Uncomment this property to prevent IDE from throwing ProcessCanceledException when user activity
# detected. This option is only useful for plugin developers, while debugging PSI related activities
# performed in background error analysis thread.
# DO NOT UNCOMMENT THIS UNLESS YOU'RE DEBUGGING IDE ITSELF. Significant slowdowns and lockups will happen otherwise.
#---------------------------------------------------------------------
#idea.ProcessCanceledException=disabled

#---------------------------------------------------------------------
# There are two possible values of idea.popup.weight property: "heavy" and "medium".
# If you have WM configured as "Focus follows mouse with Auto Raise" then you have to
# set this property to "medium". It prevents problems with popup menus on some
# configurations.
#---------------------------------------------------------------------
idea.popup.weight=heavy

#---------------------------------------------------------------------
# Use default anti-aliasing in system, i.e. override value of "Settings|Editor|Appearance|Use anti-aliased font"
# option. May be useful when using Windows Remote Desktop Connection for instance.
#---------------------------------------------------------------------
idea.use.default.antialiasing.in.editor=false

#---------------------------------------------------------------------
# Disabling this property may lead to visual glitches like blinking and fail to repaint
# on certain display adapter cards.
#---------------------------------------------------------------------
sun.java2d.noddraw=true

#---------------------------------------------------------------------
# Removing this property may lead to editor performance degradation under Windows.
#---------------------------------------------------------------------
sun.java2d.d3d=false

#---------------------------------------------------------------------
# Workaround for slow scrolling in JDK6
#---------------------------------------------------------------------
swing.bufferPerWindow=false

#---------------------------------------------------------------------
# Removing this property may lead to editor performance degradation under X Window.
#---------------------------------------------------------------------
sun.java2d.pmoffscreen=false

#---------------------------------------------------------------------
# Workaround to avoid long hangs while accessing clipboard under Mac OS X.
#---------------------------------------------------------------------
#ide.mac.useNativeClipboard=True

#---------------------------------------------------------------------
# Maximum size (kilobytes) IDEA will load for showing past file contents -
# in Show Diff or when calculating Digest Diff
#---------------------------------------------------------------------
#idea.max.vcs.loaded.size.kb=20480

#---------------------------------------------------------------------
# IDEA file chooser peeks inside directories to detect whether they contain a valid project
# (to mark such directories with a corresponding icon).
# Uncommenting the option prevents this behavior outside of user home directory.
#---------------------------------------------------------------------
#idea.chooser.lookup.for.project.dirs=false

#---------------------------------------------------------------------
# IDEA can copy library .jar files to prevent their locking.
# By default this behavior is enabled on Windows and disabled on other platforms.
# Uncomment this property to override.
#---------------------------------------------------------------------
# idea.jars.nocopy=false

#---------------------------------------------------------------------
# The VM option value to be used to start a JVM in debug mode.
# Some JREs define it in a different way (-XXdebug in Oracle VM)
#---------------------------------------------------------------------
idea.xdebug.key=-Xdebug

#-----------------------------------------------------------------------
# Change to 'enabled' if you want to receive instant visual notifications
# about fatal errors that happen to an IDE or plugins installed.
#-----------------------------------------------------------------------
idea.fatal.error.notification=disabled
disable.android.first.run=true

在最后面添加:
disable.android.first.run=true

即可完美解决问题

时间: 2024-09-25 00:04:55

解决Android Studio安装后运行出错的两个问题:dose not...和Internal error...的相关文章

android studio真机运行出错

问题描述 android studio真机运行出错 解决方案 jni的库有没有部署,路径是否正确

我的Android进阶之旅------>解决Android Studio编译后安装apk报错:The APK file does not exist on disk

1.错误描述 今天用Android Studio编译应用后安装APK的时候,报错了,错误如下所示: The APK file build\outputs\apk\OYP_2.3.4_I2Base_6476_official_debug.apk does not exist on disk. Error while Installing APK 如下图所示 2.解决方法 1.尝试了Build -> Clean Project再编译,还是无效 2.尝试重启Android Studio无效 然后我去打

Android Studio 安装后无法打开的问题

               今天上午装了个Android Studio,但是装完之后各种设置,折腾了一会儿连个界面都没进去,我就伤心了,还以为是电脑上东西太多卡的,重启!!!!           重启之后,才发现我又失算了,不是卡的愿意.一条条查吧.           首先就是JDK的环境变量,重配,然后javac,没报错.之后,查了下,又加了个环境变量:                   然并卵...         baidu.................        首先在安

android studios-android studio安装后发现无法打开设置窗口

问题描述 android studio安装后发现无法打开设置窗口 如题,安装后一切正常,偏偏就打不开设置窗口(就是那个扳手图标的Sittings),很急,在线等! 解决方案 有没配置SDK的路径什么的?

android平台-Android Studio安装好后进入Quick Start界面全是乱码

问题描述 Android Studio安装好后进入Quick Start界面全是乱码 ---------------------------分割线------------------------------------------ 操作系统,64bit-win7 我只是常规安装,安装好进入Quick Start界面就成这样了,后面点所有界面都是这种乱码.完全不知道该如何解决啊. 顺带说明一下我之前在电脑上装过WebStrom这个软件,发现也是这种乱码,卸载n遍重装还是乱码,android stu

Android Studio安装教程

一.  装前设置 1 安装JDK 下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html 注意需要选择适合自己系统的版本. 2配置java环境变量 控制面板→系统→高级系统设置→"高级"下的"环境变量": 在系统变量里点击新建,变量名填写JAVA_HOME,变量值填写JDK的安装路径,在这里就填写"C:\Program Files\J

Android Studio安装、配置

Google在2013年I/O大会上发布了Android Studio,AndroidStudio是一个基于IntelliJ IDEA的Android开发工具.这个IDE要比eclipse智能很多,具体特性,请各位去官网查看介绍. 下面介绍一下Android Studio安装教程 1.安装前准备 1.1 安装 jdk 在安装AndroidStudio之前请确保你已经安装了jdk并配置好了. 1.2 下载AndroidStudio 到AndroidStudio下载页面去下载http://devel

打包-使用eclipse打的apk包忽大忽小,安装后运行程序失败,什么原因?

问题描述 使用eclipse打的apk包忽大忽小,安装后运行程序失败,什么原因? 使用eclipse不混淆打的正式签名apk包忽大忽小,我的apk理论打包是5021K,但是每次打包都不一样,有时是4888K,有时是5006K,始终达不到正常的5021K,安装后运行程序,一闪而过,直接失败,什么原因? 解决方案 你运行失败得查看log. 解决方案二: 应该是eclipse的错误检测吧,好像是有的代码不符合规范.打开eclipse Preferences 选择 Android 下 Lint Erro

图片-android studio安装问题

问题描述 android studio安装问题 ![![![ 图片说明](http://img.ask.csdn.net/upload/201508/09/1439118847_719410.png) 图片说明](http://img.ask.csdn.net/upload/201508/09/1439118838_264272.png) 图片说明](http://img.ask.csdn.net/upload/201508/09/1439118825_311120.png) 怎么解决 解决方案