Common error and handling methods for Android Studio

Source: Internet
Author: User

After you click Update on Android Studio, the system automatically upgrades and automatically restarts Android studio, the previous project Gradle properly compiled:

Unable to start the daemon process. This problem might is caused by incorrect configuration of the daemon. For example, a unrecognized JVM option is used. Refer to the User Guide chapter on the daemon at http://Gradle.org/docs/2.4/userguide/gradle_dae mon.htmlFindmore:-----------------------forobject Heap

Workaround:


Version number after Upgrade:


Details of the error in the log

C:\Users\Administrator\. Androidstudio1.3\system\log\idea.log Error in the

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 is caused by incorrect configuration of the daemon.
For example, a unrecognized JVM option is used.
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, more:
-----------------------
Error occurred during initialization of VMS
Could not reserve enough space for object heap
Error:could not create the Java Virtual machine.
ERROR:A Fatal exception has occurred. Program would 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)

Common error and handling methods for Android Studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.