Android studio Run with --stacktrace option to get the stack trace. Run with --info or --debu
Prompt information
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
In fact, it is to let you view more log information. Find the root directory of your project, for example, your project is MyApplication, enter the directory under the dos command to execute
gradlew compileDebug --stacktrace
If the above command does not work, you can try using the following command
gradle compileDebug --stacktrace
You can see a lot of wrong information output.
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 :gradle:1.0.0. Required by: :MyApplication:unspecified > Could not GET '/com/android/tools/build/gradl e/1.0.0/gradle-1.0.'. > Connection to refused * Try: Run with --info or --debug option to get more log output. * Exception is: : A problem occurred configuring roo t project 'MyApplication'. at rationFailure(:91) at (L :61) at (AbstractProj :504) at (AbstractProj :83) at (Task :42) at (DefaultBuil :35) at (Default :129) at (DefaultGradle :106) at (DefaultGradleLaun :86) at $DefaultBuildCon (:80) at ( a:33) at ( a:24) at (InProce :36) at (InProce :26) at (:51) at $( a:171) at $ParseAndBuildAction. execute(:237) at $ParseAndBuildAction. execute(:210) at (JavaRunti :35) at (JavaRunti :24) at $( :206) at $( :169) at (ExceptionRep :33) at (ExceptionRep :22) at (:33) at (:45) at (ProcessBoots :54) at ( ava:35) at (:23) Caused by: : Could not resolve all depe ndencies for configuration ':classpath'. at (:52) at (:36) at esolver$(SelfResolvingDepend :110) at endencyResolver$(ErrorHandlingA :180) at $(:444) at .getFiles(:205) at _Decorated.getFiles(Unknown Source) at criptHandlerClassScope(:142) at ugins(:60) at $ScriptPluginImpl. apply(:131) at (BuildSc :39) at (BuildSc :26) at luate(:34) at (L :59) ... 27 more Caused by: : Could not resolve :gradle:1.0.0. Required by: :MyApplication:unspecified at (:81) at (:69) at (:44) at ndencyGraphBuilder$( :577) at ndencyGraphBuilder$(DependencyGraphBuilder. java:587) at ndencyGraphBuilder$(DependencyGraphB :272) at ndencyGraphBuilder$(DependencyGraphBu :246) at (:156) at (:94) at (:84) at endencyResolver$(:122) at endencyResolver$(:88) at $(:136) at .withIvy(:61) at .withIvy(:39) at (:88) at ndencyResolver$(:42) at $(:22) at (DefaultCacheAcc :187) at (DefaultCacheAcc :175) at (De :106) at $ReferenceTrackingCache. useCache(:187) at (:64) at (:40) at (:45) at (ShortcircuitEmptyConfigsArtifactDependencyRes :55) at (:47) at (:46) at .resolveNow(:250) at .getResolvedConfiguration(:240) at _Decorated.getResolvedConfiguration(Unknown Source) at $(:442) ... 36 more Caused by: : Cou ld not GET '/com/android/tools/build/gradle/1.0.0/gra dle-1.0.'. at equest(:80) at awGet(:66) at et(:70) at esource(:53) at esource(:36) at (:39) at (:72) at (DefaultExternalResourceArtifac :91) at (DefaultExternalResourceArtifa :57) at (:162) at (:141) at .doResolveComponentMetaData(:82) at rceResolver$(ExternalResourceReso :391) at asingModuleComponentsRepository$LockReleasingRepositoryAccess$(CacheLockRel :65) at $(:22) at (Def :237) at (Def :308) at Operation(:114) at $ReferenceTrackingCache. longRunningOperation(:179) at (:56) at asingModuleComponentsRepository$ taData(:63) at ComponentRepository$(Cac :284) at (BaseModuleComponentRepositoryAcc :38) at moryCachedModuleComponentRepository$(InMemo :70) at (:70) at (:62) at (:114) at (:97) at (:70) ... 67 more Caused by: : Connection to https:// refused at ion(:190) at (ManagedCli :294) at (Default :640) at (DefaultReq :479) at (AbstractHttpCl :906) at (Decompres :137) at (Decompres :118) at ttpRequest(:111) at etOrHead(:87) at equest(:78) ... 95 more Caused by: : Connection timed out: connect at (SSLSocketFact :549) at ion(:180) ... 104 more BUILD FAILED Total time: 45.485 secs
Thank you for reading, I hope it can help you. Thank you for your support for this site!