最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
解决Android Studio安装后运行出错dose not...和Internal error...
时间:2022-06-25 23:24:33 编辑:袖梨 来源:一聚教程网
1、dose not point to a valid jvm installation出错问题
按照以下方法设置一定可以不会出现这个错误。
我的JDK安装路径如下:
C:Program FilesJavajdk1.8.0_51
鼠标右键点击属性---->高级系统属性设置---->高级---->环境变量---->在系统变量里新建--->
变量名:JAVA_HOME
变量值 :C:Program FilesJavajdk1.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 ofthisfile) to refer to its value.
# NoteforWindows users: please make sure you're using forward slashes (e.g. c:/idea/system).
#---------------------------------------------------------------------
# Uncommentthisoptionifyou want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.AndroidStudio.2/config
#---------------------------------------------------------------------
# Uncommentthisoptionifyou want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.AndroidStudio.2/system
#---------------------------------------------------------------------
# Uncommentthisoptionifyou want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncommentthisoptionifyou 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 assistancefor.
# The larger file is the slower its editor works and higher overall system memory requirements are
#ifcode assistance is enabled. Removethisproperty or set to very large numberifyou need
# code assistanceforany 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
#---------------------------------------------------------------------
# Configureifa 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 toolongclasspath
#---------------------------------------------------------------------
idea.dynamic.classpath=false
#---------------------------------------------------------------------
# Uncommentthisproperty to prevent IDE from throwing ProcessCanceledException when user activity
# detected. This option is only usefulforplugin developers,whiledebugging 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
# setthisproperty to"medium". It prevents problems with popup menus on some
# configurations.
#---------------------------------------------------------------------
idea.popup.weight=heavy
#---------------------------------------------------------------------
# Usedefaultanti-aliasing in system, i.e. override value of"Settings|Editor|Appearance|Use anti-aliased font"
# option. May be useful when using Windows Remote Desktop Connectionforinstance.
#---------------------------------------------------------------------
idea.use.default.antialiasing.in.editor=false
#---------------------------------------------------------------------
# Disablingthisproperty may lead to visual glitches like blinking and fail to repaint
# on certain display adapter cards.
#---------------------------------------------------------------------
sun.java2d.noddraw=true
#---------------------------------------------------------------------
# Removingthisproperty may lead to editor performance degradation under Windows.
#---------------------------------------------------------------------
sun.java2d.d3d=false
#---------------------------------------------------------------------
# Workaroundforslow scrolling in JDK6
#---------------------------------------------------------------------
swing.bufferPerWindow=false
#---------------------------------------------------------------------
# Removingthisproperty may lead to editor performance degradation under X Window.
#---------------------------------------------------------------------
sun.java2d.pmoffscreen=false
#---------------------------------------------------------------------
# Workaround to avoidlonghangswhileaccessing clipboard under Mac OS X.
#---------------------------------------------------------------------
#ide.mac.useNativeClipboard=True
#---------------------------------------------------------------------
# Maximum size (kilobytes) IDEA will loadforshowing 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 preventsthisbehavior outside of user home directory.
#---------------------------------------------------------------------
#idea.chooser.lookup.for.project.dirs=false
#---------------------------------------------------------------------
# IDEA can copy library .jar files to prevent their locking.
# Bydefaultthisbehavior is enabled on Windows and disabled on other platforms.
# Uncommentthisproperty 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'ifyou 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
即可完美解决问题
相关文章
- 王者荣耀S38赛季有什么更新 12-25
- 王者荣耀S38赛季有什么更新 王者荣耀S38赛季更新内容介绍 12-25
- 世界之外12.25有什么更新 世界之外12月25日更新内容介绍 12-25
- 光遇12.25红石碎片在哪里 光遇12月25日红石碎片位置攻略 12-25
- 奇迹暖暖绚光引途第二天怎么玩 绚光引途day2庆祝之舞搭配攻略 12-25
- 无限暖暖拍照打卡位置在哪里 无限暖暖世界巡游位置全攻略 12-25