Android Studio has error run with--STACKTRACE option to get the stack trace. Run with--info or--debu_android

Source: Internet
Author: User
Tags stack trace jcenter

Android Studio Run with--STACKTRACE option to get the stack trace. Run with--info or--debu

Hint Information

 
 

It actually lets you look at more log information. Find the root of your project, such as your project is MyApplication, enter the directory under DOS command to execute

 
 

If the above command doesn't work, use the following command to try

 
 

Can see a lot of wrong information output out.



E:\myapplication>gradle Compiledebug--stacktrace Failure:build failed with a exception. 
* What went wrong:a problem occurred configuring root project ' MyApplication '. 
  > could not resolve all dependencies for configuration ': Classpath '. 
   > could not resolve com.android.tools.build:gradle:1.0.0. Required by:: myapplication:unspecified > Could not get ' https://jcenter.bintray.com/com/android/tools/build/ 
     Gradl E/1.0.0/gradle-1.0.0.pom '. > Connection to https://jcenter.bintray.com refused * Try:run with--info or--debug option to get more log output 
 
. * Exception is:org.gradle.api.projectconfigurationexception:a problem occurred configuring Roo T project ' Myapplicatio 
    N '. At Org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigu Rationfailure ( 
lifecycleprojectevaluator.java:91) at Org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate (L ifecycleprojectevaluator.java:61) at Org.gradle.Api.internal.project.AbstractProject.evaluate (Abstractproj ect.java:504) at Org.gradle.api.internal.project.AbstractProject.evaluate (Abstractproj ect.java:83) at Org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy (Task pathprojectevaluator.java:42) at Org.gradle.configuration.DefaultBuildConfigurer.configure (Defaultbuil dconfigurer.java:35) at Org.gradle.initialization.DefaultGradleLauncher.doBuildStages (Default gradlelauncher.java:129) at Org.gradle.initialization.DefaultGradleLauncher.doBuild (Defaultgradle launcher.java:106) at Org.gradle.initialization.DefaultGradleLauncher.run (Defaultgradlelaun cher.java:86) at Org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcon Troller.run ( INPROCESSBUILDACTIONEXECUTER.JAVA:80) at Org.gradle.launcher.cli.ExecuteBuildAction.run (Executebuildaction.jav a £) at Org.gradle.launcher.cli.ExecuteBuildAction.run (Executebuildaction.jav a:24) at Org.gradle.launcher.exeC.inprocessbuildactionexecuter.execute (Inproce ssbuildactionexecuter.java:36) at Org.gradle.launcher.exec.InProcessBuildActionExecuter.execute (Inproce ssbuildactionexecuter.java:26) at Org.gradle.launcher.cli.RunBuildAction.run (runbuildaction.java:51) at org.gradle.internal.actions$ Runnableactionadapter.execute (Actions.jav a:171) at org.gradle.launcher.cli.commandlineactionfactory$ 
Parseandbuildaction. Execute (commandlineactionfactory.java:237) at org.gradle.launcher.cli.commandlineactionfactory$ 
Parseandbuildaction. Execute (commandlineactionfactory.java:210) at Org.gradle.launcher.cli.JavaRuntimeValidationAction.execute ( Javarunti mevalidationaction.java:35) at Org.gradle.launcher.cli.JavaRuntimeValidationAction.execute (Javarunti MeV 
alidationaction.java:24) at Org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute ( commandlineactionfactory.java:206) at Org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute (
commandlineactionfactory.java:169) at Org.gradle.launcher.cli.ExceptionReportingAction.execute (exceptionrep ortingaction.java:33) at Org.gradle.launcher.cli.ExceptionReportingAction.execute (Exceptionrep Ortingaction.java :) at Org.gradle.launcher.Main.doAction (main.java:33) at Org.gradle.launcher.bootstrap.EntryPoint.run (Entrypoi nt.java:45) at Org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit (Processboots trap.java:54) at Org.gradl E.launcher.bootstrap.processbootstrap.run (PROCESSBOOTSTRAP.J ava:35) at Org.gradle.launcher.GradleMain.main ( GRADLEMAIN.JAVA:23) caused by:org.gradle.api.artifacts.ResolveException:Could not resolve all Depe ndencies for config 
    Uration ': Classpath '. At Org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfigurat Ion.rethrowfailure ( 
defaultlenientconfiguration.java:52) at Org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfigura Tion.rethrowfailure (Defaultresolvedconfiguration.java:36) at Org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR esolver$ Filesaggregatingresolvedconfiguration.rethrowfailure (Selfresolvingdepend encyresolver.java:110) at Org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep endencyresolver$ Errorhandlingresolvedconfiguration.rethrowfailure (Errorhandlinga rtifactdependencyresolver.java:180) at Org.gradle.api.internal.artifacts.configurations.DefaultConfiguration $ConfigurationFileCollection. GetFiles ( defaultconfiguration.java:444) at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration. GetFiles (defaultconfiguration.java:205) at Org.gradle.api.internal.artifacts.configurations.DefaultConfiguration _ 
Decorated.getfiles (Unknown Source) at Org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.defineS Cripthandlerclassscope (defaultpluginrequestapplicator.java:142) at Org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPl Ugins (Defaultpluginrequestapplicator.java:60) at Org.gradle.configuration.defaultscriptpluginfactory$scriptpluginimpl. Apply (defaultscriptpluginfactory.java:131) at Org.gradle.configuration.project.BuildScriptProcessor.execute ( BUILDSC riptprocessor.java:39) at Org.gradle.configuration.project.BuildScriptProcessor.execute (BUILDSC riptproces sor.java:26) at Org.gradle.configuration.project.ConfigureActionsProjectEvaluator.eva luate ( CONFIGUREACTIONSPROJECTEVALUATOR.JAVA:34) at Org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate (L ifecycleprojectevaluator.java:59) ... caused by:org.gradle.internal.resolve.ModuleVersionResolveException:Could not resolve 
com.android.tools.build:gradle:1.0.0. 
Required by:: Myapplication:unspecified at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryCha Independencyresolver.resolve (repositorychaindependencyresolver.java:81) at Org.gradle.api.internal.artifacts.ivyservice.ivYresolve. Repositorycha Inadapter.resolve (repositorychainadapter.java:69) at Org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModul Eresolver.resolve ( 
CLIENTMODULERESOLVER.JAVA:44) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe Ndencygraphbuilder$moduleversionresolvestate.resolve (dependencygraphbuilder.java:577) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe ndencygraphbuilder$ 
Moduleversionresolvestate.getmetadata (Dependencygraphbuilder. java:587) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe ndencygraphbuilder$ Dependencyedge.calculatetargetconfigurations (DEPENDENCYGRAPHB uilder.java:272) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe ndencygraphbuilder$ Dependencyedge.attachtotargetconfigurations (Dependencygraphbu ilder.java:246) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe Ndencygraphbuilder.traverseGraph (dependencygraphbuilder.java:156) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe Ndencygraphbuilder.resolvedependencygraph (dependencygraphbuilder.java:94) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe Ndencygraphbuilder.resolve ( 
dependencygraphbuilder.java:84) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep Endencyresolver$1.execute (defaultdependencyresolver.java:122) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep Endencyresolver$1.execute ( defaultdependencyresolver.java:88) at Org.gradle.internal.transformers$4.transform (Transformers.java:136) at org . Gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager. Withivy (defaultivycontextmanager.java:61) at Org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager. Withivy (defaultivycontextmanager.java:39 ) at Org.gradle.api.internal.artifacts.ivyservice.resolveengine.DeFAULTDEP Endencyresolver.resolve (defaultdependencyresolver.java:88) at Org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe Ndencyresolver$1.run ( cachelockingartifactdependencyresolver.java:42) at Org.gradle.internal.factories$1.create (Factories.java:22) at Org.gradle.cache.internal.DefaultCacheAccess.useCache (Defaultcacheacc ess.java:187) at Org.gradle.cache.internal.DefaultCacheAccess.useCache (Defaultcacheacc ess.java:175) at Org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache (De faultpersistentdirectorystore.java:106) at 
Org.gradle.cache.internal.defaultcachefactory$referencetrackingcache. 
UseCache (defaultcachefactory.java:187) at Org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag Er.usecache (defaultcachelockingmanager.java:64) at Org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe Ndencyresolver.resolve ( CACHELOCKINGARTIFACTDEPENDENCYRESOLVER.JAVA:40) at Org.gradlE.api.internal.artifacts.ivyservice.selfresolvingdependencyr Esolver.resolve ( SELFRESOLVINGDEPENDENCYRESOLVER.JAVA:45) at Org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs Artifactdependencyresolver.resolve ( Shortcircuitemptyconfigsartifactdependencyres olver.java:55) at Org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep Endencyresolver.resolve ( ERRORHANDLINGARTIFACTDEPENDENCYRESOLVER.JAVA:47) at Org.gradle.api.internal.artifacts.ivyservice.DefaultConfigurationReso Lver.resolve ( defaultconfigurationresolver.java:46) at Org.gradle.api.internal.artifacts.configurations.DefaultConfiguration. Resolvenow (defaultconfiguration.java:250) at Org.gradle.api.internal.artifacts.configurations.DefaultConfiguration. Getresolvedconfiguration ( defaultconfiguration.java:240) at Org.gradle.api.internal.artifacts.configurations.DefaultConfiguration _ Decorated.getresolvedconfiguration (Unknown Source) at org.gradle.api.internal.arTifacts.configurations.DefaultConfiguration $ConfigurationFileCollection. GetFiles (defaultconfiguration.java:442 ) 
    ... caused By:org.gradle.internal.resource.transport.http.HttpRequestException:Cou ld not get ' https://jcenter.bi 
    Ntray.com/com/android/tools/build/gradle/1.0.0/gra Dle-1.0.0.pom '. At Org.gradle.internal.resource.transport.http.HttpClientHelper.performR Equest (httpclienthelper.java:80) at Org.gradle.internal.resource.transport.http.HttpClientHelper.performR Awget (httpclienthelper.java:66) at Org.gradle.internal.resource.transport.http.HttpClientHelper.performG ET (httpclienthelper.java:70) at Org.gradle.internal.resource.transport.http.HttpResourceAccessor.getR esource (httpresourceaccessor.java:53) at Org.gradle.internal.resource.transport.http.HttpResourceAccessor.getR esource (httpresourceaccessor.java:36) at Org.gradle.internal.resource.transfer.ProgressLoggingExternalResource Accessor.getresource ( Progressloggingexternalresourceaccessor.java:39) at Org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResour Ceaccessor.getresource (defaultcacheawareexternalresourceaccessor.java:72) at 
Org.gradle.api.internal.artifacts.repositories.resolver.DefaultExtern Alresourceartifactresolver.downloadstaticresource (Defaultexternalresourceartifac tResolver.java:91) at 
Org.gradle.api.internal.artifacts.repositories.resolver.DefaultExtern Alresourceartifactresolver.resolvemetadataartifact (Defaultexternalresourceartifa ctResolver.java:57) at Org.gradle.api.internal.artifacts.repositories.resolver.ExternalResou Rceresolver.parsemetadatafromartifact ( 
externalresourceresolver.java:162) at Org.gradle.api.internal.artifacts.repositories.resolver.ExternalResou Rceresolver.resolvestaticdependency (externalresourceresolver.java:141) at Org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver. Doresolvecomponentmetadata ( mavenresolver.java:82) at Org.gradle.api.interNal.artifacts.repositories.resolver.ExternalResou Rceresolver$remoterepositoryaccess.resolvecomponentmetadata ( Externalresourcereso lver.java:391) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockRele asing 
Modulecomponentsrepository$lockreleasingrepositoryaccess$2.run (Cachelockrel EASINGMODULECOMPONENTSREPOSITORY.JAVA:65) at Org.gradle.internal.factories$1.create (Factories.java:22) at org.gr Adle.cache.internal.DefaultCacheAccess.longRunningOperation (Def aultcacheaccess.java:237) at Org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation (Def aultcacheaccess.java:308) at Org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning Operation ( defaultpersistentdirectorystore.java:114) at org.gradle.cache.internal.defaultcachefactory$ 
Referencetrackingcache. LongRunningOperation (defaultcachefactory.java:179) at Org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag Er.longrunningoperation (DEFAULTCAchelockingmanager.java:56) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockRele Asingmodulecomponentsrepository$lockreleasingrepositoryaccess.resolvecomponentme TaData ( CACHELOCKRELEASINGMODULECOMPONENTSREPOSITORY.JAVA:63) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule componentrepository$ Resolveandcacherepositoryaccess.resolvecomponentmetadata (Cac hingmodulecomponentrepository.java:284) at 
Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.BaseModuleCom Ponentrepositoryaccess.resolvecomponentmetadata (Basemodulecomponentrepositoryacc ess.java:38) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMe morycachedmodulecomponentrepository$ Cachedaccess.resolvecomponentmetadata (Inmemo rycachedmodulecomponentrepository.java:70) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ComponentMeta dataresolvestate.process ( COMPONENTMETADATARESOLVESTATE.JAVA:70) at Org.gradle.api.internAl.artifacts.ivyservice.ivyresolve.ComponentMeta Dataresolvestate.resolve (componentmetadataresolvestate.java:62 ) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryCha Independencyresolver.findbestmatch ( repositorychaindependencyresolver.java:114) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryCha Independencyresolver.findbestmatch ( REPOSITORYCHAINDEPENDENCYRESOLVER.JAVA:97) at Org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryCha Independencyresolver.resolve ( REPOSITORYCHAINDEPENDENCYRESOLVER.JAVA:70) ... 
    caused By:org.apache.http.conn.HttpHostConnectException:Connection to https://Jcenter.bintray.com refused At Org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnect Ion ( defaultclientconnectionoperator.java:190) at Org.apache.http.impl.conn.ManagedClientConnectionImpl.open ( Managedcli entconnectionimpl.java:294) at org.apache.http.impl.client.defaultrequestdirector.tRyconnect (Default requestdirector.java:640) at Org.apache.http.impl.client.DefaultRequestDirector.execute ( Defaultreq uestdirector.java:479) at Org.apache.http.impl.client.AbstractHttpClient.execute (ABSTRACTHTTPCL Ient.ja va:906) at Org.apache.http.impl.client.DecompressingHttpClient.execute (Decompres singhttpclient.java:137) at or G.apache.http.impl.client.decompressinghttpclient.execute (Decompres singhttpclient.java:118) at Org.gradle.internal.resource.transport.http.HttpClientHelper.performH ttprequest (httpclienthelper.java:111) at Org.gradle.internal.resource.transport.http.HttpClientHelper.executeG Etorhead (httpclienthelper.java:87) at Org.gradle.internal.resource.transport.http.HttpClientHelper.performR equest (httpclienthelper.java:78) ... caused by:java.net.ConnectException:Connection timed out:connect at Org.apache.http.conn.ssl.SSLSocketFac Tory.connectsocket (Sslsocketfact ory.java:549) at Org.apache.http.impl.Conn. Defaultclientconnectionoperator.openconnect ion (defaultclientconnectionoperator.java:180) ... 



 FAILED Total time:45.485 secs

Thank you for reading, I hope to help you, thank you for your support for this site!

Related Article

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.