AndroID studio Run with --stacktrace option to get the stack trace. Run with --info or --debu
提示信息
@H_404_8@Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output.
其实是让你去查看更多的log信息。找到你项目的根目录,比如你的项目是MyApplication,在dos命令下进入该目录执行
@H_404_8@gradlew compileDeBUG --stacktrace
如果上面的命令不管用,可以使用下面的命令试试
@H_404_8@gradle compileDeBUG --stacktrace
可以看到很多错误的信息输出出来。
@H_404_8@E:\MyApplication>gradle compileDeBUG --stacktrace FAILURE: Build Failed with an 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 'MyApplication'. 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:33) 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 meValIDationAction.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:22) at org.gradle.launcher.Main.doAction(Main.java:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.bootstrap.Processbootstrap.runNoExit(ProcessBoots trap.java:54) at org.gradle.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 configuration ':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 riptProcessor.java:26) at org.gradle.configuration.project.ConfigureActionsprojectEvaluator.eva luate(ConfigureActionsprojectEvaluator.java:34) at org.gradle.configuration.project.lifecycleProjectEvaluator.evaluate(L ifecycleProjectEvaluator.java:59) ... 27 more 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.execute(DefaultDependencyResolver.java:122) at org.gradle.API.internal.artifacts.ivyservice.resolveengine.DefaultDep endencyResolver.execute(DefaultDependencyResolver.java:88) at org.gradle.internal.transformers.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.run(CacheLockingArtifactDependencyResolver.java:42) at org.gradle.internal.FactorIEs.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) ... 36 more Caused by: org.gradle.internal.resource.transport.http.httpRequestException: Cou ld not GET 'https://jcenter.bintray.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 asingModuleComponentsRepository$LockReleasingRepositoryAccess.run(CacheLockRel easingModuleComponentsRepository.java:65) at org.gradle.internal.FactorIEs.create(FactorIEs.java:22) at org.gradle.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) ... 67 more 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.java:906) at org.apache.http.impl.clIEnt.DecompressinghttpClIEnt.execute(Decompres singhttpClIEnt.java:137) at org.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) ... 95 more Caused by: java.net.ConnectException: Connection timed out: connect at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFact ory.java:549) at org.apache.http.impl.conn.DefaultClIEntConnectionoperator.openConnect ion(DefaultClIEntConnectionoperator.java:180) ... 104 more BUILD Failed Total time: 45.485 secs
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
总结以上是内存溢出为你收集整理的Android studio 出现错误Run with --stacktrace option to get the stack trace. Run with --info or --debu全部内容,希望文章能够帮你解决Android studio 出现错误Run with --stacktrace option to get the stack trace. Run with --info or --debu所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)