使用Android Studio时的一个问题
2015-09-23 20:05
465 查看
前些天打开Android Studio准备写一个程序的时候,它出现了一个问题,问题描述如下:
上网百度,出现的解决方法大多数是针对Eclipse或者tomcat的设置问题,好不容易找到了本问题的解决方案,
特作此记录。具体如下:
Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
上网百度,出现的解决方法大多数是针对Eclipse或者tomcat的设置问题,好不容易找到了本问题的解决方案,
特作此记录。具体如下:
定位到目录 C:\Users\<username>\.gradle 创建文件gradle.properties 内容:org.gradle.jvmargs=-Xmx512m 重启你的Android Studio项目,搞定。希望能帮到大家,谢谢!
相关文章推荐
- Android 5.0新特性ToolBar
- android可扩展自己的定义,运动图像裁剪框
- Android Api Demos登顶之路(七十八)Graphics-->MeansureText
- Android开机启动扫描SD卡apk流程
- Android判断当前线程是否是主线程的方法
- AndroidStudio 如何生成秘钥?
- Android Studio cannot launch avd in emulator解决方案
- 模拟Android路径浏览器
- Android设计支持库(Android Design Support Library)
- Android Studio网盘下载
- android为ImageView使用蒙层
- 【android】环形进度条实现
- Android中运行的错误:java.lang.UnsatisfiedLinkError: Couldn't load locSDK3: findLibrary returned null.
- Android 位置服务——BaiduLocation的使用
- android 图片压缩
- Android工具栏--ActionBar
- android 图片压缩 生成缩略图方法
- Android SDK 更新代理
- Android图片压缩(质量压缩和尺寸压缩)
- Android压缩图片到100K以下并保持不失真的高效方法