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

作者:lqh 时间:2023-04-24 11:54:42 

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

即可完美解决问题

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

来源:http://blog.csdn.net/morixinguan/article/details/55225779

标签:Android,Studio,出错
0
投稿

猜你喜欢

  • Windows系统中Java调用cmd命令及执行exe程序的方法

    2021-11-27 23:00:02
  • Android P实现静默安装的方法示例(官方Demo)

    2022-04-05 20:06:13
  • Java实现的质因数分解操作示例【基于递归算法】

    2023-08-19 03:22:12
  • Android编程之SQLite数据库操作方法详解

    2021-11-27 03:42:21
  • Java保留两位小数的几种写法总结

    2022-04-19 06:53:06
  • Android popupWindow弹出窗体实现方法分析

    2021-08-08 08:07:42
  • android实现背景音乐播放功能

    2023-09-17 23:29:25
  • Java日期时间操作的方法

    2021-12-27 18:36:05
  • Java使用BigDecimal进行高精度计算的示例代码

    2023-03-25 10:35:43
  • Android IPC机制Messenger实例详解

    2023-04-27 13:25:06
  • C#中的文件路径获取函数和文件名字获取函数小结

    2023-10-18 10:28:20
  • C# 添加、修改和删除PDF书签的实例代码

    2022-09-24 06:45:55
  • springboot加载复杂的yml文件获取不到值的解决方案

    2021-07-29 18:26:11
  • Android中的Notification机制深入理解

    2021-12-03 14:14:22
  • springBoot详解集成Swagger流程

    2023-02-26 22:23:33
  • 基于mybatis plus实现数据源动态添加、删除、切换,自定义数据源的示例代码

    2021-08-20 20:07:46
  • Android查看文件夹大小以及删除文件夹的工具类

    2023-06-12 05:51:10
  • Java使用ExecutorService来停止线程服务

    2023-01-25 12:10:56
  • Java中Set与List的关系与区别介绍

    2023-03-17 08:01:07
  • 学习SpringBoot容器功能及注解原理

    2023-11-24 22:06:17
  • asp之家 软件编程 m.aspxhome.com