解决Android Studio安装后运行出错的两个问题:dose not...和Internal error...
2023-09-27 14:28:47 时间
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 youre using forward slashes (e.g. c:/idea/system). #--------------------------------------------------------------------- # Uncomment this option if you want to customize path to IDE config folder. Make sure youre 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 youre 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 youre 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 youre 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 YOURE 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
即可完美解决问题
异常日志: Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file C:\Users\Administrator\Desktop\MegviiFaceppv2_Android_0.
(转)Android Studio Error:Failed to resolve: com.android.support:appcompat-v7:25.1.0解决方案 今天不知道为什么导入eclipse项目后就出现了错误,没导入之前是正常使用AS的 Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:25.+ 第一、点击Install Repository 。
morixinguan ITGEGE在线教育嵌入式开发讲师。 CSDN博客专家、CSDN-Linux特邀编辑、CSDN博乐、CSDN学院讲师,目前从事嵌入式开发领域,从事与单片机,Linux,android相关的产品开发。
相关文章
- Android常见App加固厂商脱壳方法的整理
- 解决Android Studio安装过程中“SDK tools directory is missing”的问题
- Android 视频缩放/放大
- Android Studio 安装配置教程 - MacOS(详细版)
- android从网络获取图片
- Android Studio更新成2.3以后Gradle大坑拯救,gradle安装异常解决办法
- 解决Eclipse、Android Studio ADT AVD不能检测到手机
- Android Studio混淆打包
- Android+Jquery Mobile学习系列(8)-保单/生日提醒功能
- Android Fragment详解(四):管理Fragment
- Android studio 怎么使用单元测试(不需要device)
- Android studio开多个窗口引起的问题
- Android Studio安装教程(保姆级超级详细)
- 《OpenGL ES应用开发实践指南:Android卷》—— 3.2 编译着色器
- Android Studio目录结构浅析
- Android studio安装配置
- android studio修改项目工程包名
- 【安卓开发快速入门】Android Studio(3.5.2)安装
- android studio下载地址
- Android Studio怎样改动快捷键
- Android application framework 分析[in process]
- Android Studio 基础 之 简单的多屏异显的功能实现的详细步骤,及相关简单整理
- Android Studio 爬虫 之 简单实现使用 jsoup/okhttp3 爬取购物商品信息的案例demo(附有详细步骤)
- Android Studio 基础 之 模拟 Home / 音量 + - 加减键按下(扩展到模拟常用的各个物理按键)的操作
- 安卓开发笔记(二十):利用夜神模拟器调试运行Android Studio的apk
- 修改 Android Studio 模拟器的默认安装位置
- Android查看当前的Activity
- 常见Android测试工具简介
- Android Studio中使用AAR包
- Android Studio 3.x 修改 Log 颜色