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

 更新时间:2017年03月19日 11:26:18   投稿:lqh  
这篇文章主要介绍了解决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

即可完美解决问题

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

相关文章

  • Spring Boot全局统一异常处理器

    Spring Boot全局统一异常处理器

    软件开发springboot项目过程中,不仅有大量的冗余代码,而且还影响代码的可读性.这样就需要定义个全局统一异常处理器,以便业务层再也不必处理异常.文中有非常详细的代码示例,需要的朋友可以参考下
    2021-05-05
  • 浅析java 的 static 关键字用法

    浅析java 的 static 关键字用法

    这篇文章主要介绍了浅析java 的 static 关键字用法的相关资料,非常不错,具有参考借鉴价值,需要的朋友可以参考下
    2016-06-06
  • Java将Object转换为数组的代码

    Java将Object转换为数组的代码

    这篇文章主要介绍了Java将Object转换为数组的情况,今天在使用一个别人写的工具类,这个工具类,主要是判空操作,包括集合、数组、Map等对象是否为空的操作,需要的朋友可以参考下
    2022-09-09
  • Mybatis中的自定义映射resultMap

    Mybatis中的自定义映射resultMap

    在MyBatis中,自定义映射resultMap可以让你精确控制如何将数据库返回的结果集映射到Java对象上,本文给介绍了Mybatis之自定义映射resultMap,需要的朋友可以参考下
    2024-03-03
  • Java基于链表实现栈的方法详解

    Java基于链表实现栈的方法详解

    这篇文章主要介绍了Java基于链表实现栈的方法,结合实例形式详细分析了Java基于链表实现栈的原理、操作步骤与相关注意事项,需要的朋友可以参考下
    2020-03-03
  • Java实战之课程在线学习系统的实现

    Java实战之课程在线学习系统的实现

    本文将采用SpringBoot+Spring+Mybatis+Thyeleaf实现一个课程在线学习系统,采用SpringBoot框架实现 前台模板用的thymeleaf数据库层采用mybatis框架注解模式,感兴趣的可以了解一下
    2022-04-04
  • Spark 集群执行任务失败的故障处理方法

    Spark 集群执行任务失败的故障处理方法

    这篇文章主要为大家介绍了Spark 集群执行任务失败的故障处理方法详解,有需要的朋友可以借鉴参考下,希望能够有所帮助,祝大家多多进步,早日升职加薪
    2023-02-02
  • 详解springboot中的jar包部署步骤

    详解springboot中的jar包部署步骤

    这篇文章主要介绍了springboot中的jar包部署步骤及linux中部署项目常用指令,需要的朋友可以参考下
    2018-07-07
  • Idea工具中使用Mapper对象有红线的解决方法

    Idea工具中使用Mapper对象有红线的解决方法

    mapper对象在service层有红线,项目可以正常使用,想知道为什么会出现这种情,接下来通过本文给大家介绍下Idea工具中使用Mapper对象有红线的问题,需要的朋友可以参考下
    2022-09-09
  • java实现大文件分割与合并的实例代码

    java实现大文件分割与合并的实例代码

    java实现大文件分割与合并的实例代码,需要的朋友可以参考一下
    2013-03-03

最新评论