欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

解决Android Studio安装后运行出错dose not...和Internal error...

程序员文章站 2024-03-31 17:49:34
1、dose not point to a valid jvm installation出错问题 按照以下方法设置一定可以不会出现这个错误。 我的jdk安装路径...

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安装后运行出错dose not...和Internal error...

解决方法:

来到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

即可完美解决问题

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!