欢迎访问 生活随笔!

ag凯发k8国际

当前位置: ag凯发k8国际 > 运维知识 > android >内容正文

android

android studio常见报错及处理办法 -ag凯发k8国际

发布时间:2025/1/21 android 24 豆豆
ag凯发k8国际 收集整理的这篇文章主要介绍了 android studio常见报错及处理办法 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

在android studio上点了update,系统自动升级,自动重启android studio后,以前的项目gradle正常编译:

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.4/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

解决办法:


升级后的版本号:


日志中的报错详情

c:\users\administrator\.androidstudio1.3\system\log\idea.log中的报错

2015-09-05 13:46:13,019 [ 724462] info - .baseprojectimporterrorhandler - failed to import gradle project at 'f:\java\android\workspace\androidpracticespace\myapplication'
org.gradle.tooling.gradleconnectionexception: could not run build action using gradle installation 'f:\program files\android\android studio\gradle\gradle-2.4'.
at org.gradle.tooling.internal.consumer.resulthandleradapter.onfailure(resulthandleradapter.java:59)
at org.gradle.tooling.internal.consumer.async.defaultasyncconsumeractionexecutor$1$1.run(defaultasyncconsumeractionexecutor.java:57)
at org.gradle.internal.concurrent.defaultexecutorfactory$stoppableexecutorimpl$1.run(defaultexecutorfactory.java:64)
at java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895)
at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918)
at java.lang.thread.run(thread.java:662)
at org.gradle.tooling.internal.consumer.blockingresulthandler.getresult(blockingresulthandler.java:46)
at org.gradle.tooling.internal.consumer.defaultbuildactionexecuter.run(defaultbuildactionexecuter.java:46)
at org.jetbrains.plugins.gradle.service.project.gradleprojectresolver.doresolveprojectinfo(gradleprojectresolver.java:188)
at org.jetbrains.plugins.gradle.service.project.gradleprojectresolver.access$300(gradleprojectresolver.java:65)
at org.jetbrains.plugins.gradle.service.project.gradleprojectresolver$projectconnectiondatanodefunction.fun(gradleprojectresolver.java:360)
at org.jetbrains.plugins.gradle.service.project.gradleprojectresolver$projectconnectiondatanodefunction.fun(gradleprojectresolver.java:332)
at org.jetbrains.plugins.gradle.service.project.gradleexecutionhelper.execute(gradleexecutionhelper.java:215)
at org.jetbrains.plugins.gradle.service.project.gradleprojectresolver.resolveprojectinfo(gradleprojectresolver.java:97)
at org.jetbrains.plugins.gradle.service.project.gradleprojectresolver.resolveprojectinfo(gradleprojectresolver.java:65)
at com.intellij.openapi.externalsystem.service.remote.remoteexternalsystemprojectresolverimpl$1.produce(remoteexternalsystemprojectresolverimpl.java:41)
at com.intellij.openapi.externalsystem.service.remote.remoteexternalsystemprojectresolverimpl$1.produce(remoteexternalsystemprojectresolverimpl.java:37)
at com.intellij.openapi.externalsystem.service.remote.abstractremoteexternalsystemservice.execute(abstractremoteexternalsystemservice.java:59)
at com.intellij.openapi.externalsystem.service.remote.remoteexternalsystemprojectresolverimpl.resolveprojectinfo(remoteexternalsystemprojectresolverimpl.java:37)
at com.intellij.openapi.externalsystem.service.remote.wrapper.externalsystemprojectresolverwrapper.resolveprojectinfo(externalsystemprojectresolverwrapper.java:49)
at com.intellij.openapi.externalsystem.service.internal.externalsystemresolveprojecttask.doexecute(externalsystemresolveprojecttask.java:51)
at com.intellij.openapi.externalsystem.service.internal.abstractexternalsystemtask.execute(abstractexternalsystemtask.java:138)
at com.intellij.openapi.externalsystem.service.internal.abstractexternalsystemtask.execute(abstractexternalsystemtask.java:124)
at com.intellij.openapi.externalsystem.util.externalsystemutil$4.execute(externalsystemutil.java:540)
at com.intellij.openapi.externalsystem.util.externalsystemutil$5$2.run(externalsystemutil.java:621)
at com.intellij.openapi.progress.impl.coreprogressmanager$taskrunnable.run(coreprogressmanager.java:563)
at com.intellij.openapi.progress.impl.coreprogressmanager$2.run(coreprogressmanager.java:152)
at com.intellij.openapi.progress.impl.coreprogressmanager.registerindicatorandrun(coreprogressmanager.java:452)
at com.intellij.openapi.progress.impl.coreprogressmanager.executeprocessunderprogress(coreprogressmanager.java:402)
at com.intellij.openapi.progress.impl.progressmanagerimpl.executeprocessunderprogress(progressmanagerimpl.java:54)
at com.intellij.openapi.progress.impl.coreprogressmanager.runprocess(coreprogressmanager.java:137)
at com.intellij.openapi.progress.impl.progressmanagerimpl$1.run(progressmanagerimpl.java:126)
at com.intellij.openapi.application.impl.applicationimpl$8.run(applicationimpl.java:400)
at java.util.concurrent.executors$runnableadapter.call(executors.java:439)
at java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303)
at java.util.concurrent.futuretask.run(futuretask.java:138)
at java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895)
at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918)
at java.lang.thread.run(thread.java:662)
at org.jetbrains.ide.pooledthreadexecutor$1$1.run(pooledthreadexecutor.java:56)
caused by: org.gradle.api.gradleexception: 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.4/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.

at org.gradle.launcher.daemon.bootstrap.daemongreeter.parsedaemonoutput(daemongreeter.java:35)
at org.gradle.launcher.daemon.client.defaultdaemonstarter.startprocess(defaultdaemonstarter.java:113)
at org.gradle.launcher.daemon.client.defaultdaemonstarter.startdaemon(defaultdaemonstarter.java:94)
at org.gradle.launcher.daemon.client.defaultdaemonconnector.startdaemon(defaultdaemonconnector.java:109)
at org.gradle.launcher.daemon.client.defaultdaemonconnector.connect(defaultdaemonconnector.java:87)
at org.gradle.launcher.daemon.client.daemonclient.execute(daemonclient.java:117)
at org.gradle.launcher.daemon.client.daemonclient.execute(daemonclient.java:77)
at org.gradle.tooling.internal.provider.daemonbuildactionexecuter.execute(daemonbuildactionexecuter.java:44)
at org.gradle.tooling.internal.provider.daemonbuildactionexecuter.execute(daemonbuildactionexecuter.java:31)
at org.gradle.tooling.internal.provider.loggingbridgingbuildactionexecuter.execute(loggingbridgingbuildactionexecuter.java:62)
at org.gradle.tooling.internal.provider.loggingbridgingbuildactionexecuter.execute(loggingbridgingbuildactionexecuter.java:34)
at org.gradle.tooling.internal.provider.providerconnection.run(providerconnection.java:113)
at org.gradle.tooling.internal.provider.providerconnection.run(providerconnection.java:107)
at org.gradle.tooling.internal.provider.defaultconnection.run(defaultconnection.java:186)
at org.gradle.tooling.internal.consumer.connection.cancellableconsumerconnection$cancellableactionrunner.run(cancellableconsumerconnection.java:105)
at org.gradle.tooling.internal.consumer.connection.abstractconsumerconnection.run(abstractconsumerconnection.java:60)
at org.gradle.tooling.internal.consumer.defaultbuildactionexecuter$1.run(defaultbuildactionexecuter.java:57)
at org.gradle.tooling.internal.consumer.connection.lazyconsumeractionexecutor.run(lazyconsumeractionexecutor.java:83)
at org.gradle.tooling.internal.consumer.connection.progressloggingconsumeractionexecutor.run(progressloggingconsumeractionexecutor.java:58)
at org.gradle.tooling.internal.consumer.async.defaultasyncconsumeractionexecutor$1$1.run(defaultasyncconsumeractionexecutor.java:55)
at org.gradle.internal.concurrent.defaultexecutorfactory$stoppableexecutorimpl$1.run(defaultexecutorfactory.java:64)
at java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895)
at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918)
at java.lang.thread.run(thread.java:662)

 

总结

以上是ag凯发k8国际为你收集整理的android studio常见报错及处理办法的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得ag凯发k8国际网站内容还不错,欢迎将ag凯发k8国际推荐给好友。

网站地图