错误异常 (1)Android Studio错误提示:Gradle project sync failed. Basic functionality (eg. editing, debugging) will not work properly

简介:

【已解决】Android Studio错误提示:Gradle project sync failed. Basic functionality (eg. editing, debugging) will not work properly

【问题】

Android Studio中出现提示:

Gradle project sync failed. Basic functionality (eg. editing, debugging) will not work properly

如图:

Android Studio Gradle project sync failed

【解决过程】

1.点击了:

Show Log in Explorer

打开找到了log文件:

C:\Users\Administrator\.AndroidStudio\system\log\idea.log

C Users Administrator AndroidStudio system log idea.log file

Log文件内容很长,最后一部分是:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
Consult IDE log for  more  details (Help | Show Log)
2015-04-01 10:37:20,131 [1257636]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in  2694 ms
2015-04-01 10:37:20,131 [1257636]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 2500 files to update
2015-04-01 10:37:22,330 [1259835]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $PROJECT_CONFIG_DIR$ /codeStyleSettings .xml file  is null
2015-04-01 10:37:22,333 [1259838]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $PROJECT_CONFIG_DIR$ /projectCodeStyle .xml file  is null
2015-04-01 10:37:22,600 [1260105]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $PROJECT_CONFIG_DIR$ /fileColors .xml file  is null
2015-04-01 10:37:25,627 [1263132]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /web-browsers .xml file  is null
2015-04-01 10:37:36,269 [1273774]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done  in  16138 ms
2015-04-01 10:37:36,941 [1274446]   INFO - nject.config.XPathSupportProxy - XPath Support is not available
2015-04-01 10:37:37,119 [1274624]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /IntelliLang .xml file  is null
2015-04-01 10:37:37,122 [1274627]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $PROJECT_CONFIG_DIR$ /IntelliLang .xml file  is null
2015-04-01 10:37:37,947 [1275452]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /feature .usage.statistics.xml file  is null
2015-04-01 10:37:39,177 [1276682]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $PROJECT_CONFIG_DIR$ /gant_config .xml file  is null
2015-04-01 10:37:40,335 [1277840]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /remote-servers .xml file  is null
2015-04-01 10:37:40,518 [1278023]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 58569 ms
2015-04-01 10:37:46,714 [1284219]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /file .template.settings.xml file  is null
2015-04-01 10:37:51,540 [1289045]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /cachedDictionary .xml file  is null
2015-04-01 10:39:35,962 [1393467]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /intentionSettings .xml file  is null
2015-04-01 10:43:56,598 [1654103]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in  3182 ms
2015-04-01 10:43:56,598 [1654103]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 22098 files to update
2015-04-01 10:44:23,144 [1680649]   INFO - util.EmbeddedDistributionPaths - Looking for  embedded Gradle distribution at 'C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1'
2015-04-01 10:44:23,252 [1680757]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.7.0_76
2015-04-01 10:44:23,253 [1680758]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.7.0_76
2015-04-01 10:44:23,254 [1680759]   INFO - util.EmbeddedDistributionPaths - Looking for  embedded Maven repo at 'C:\Program Files\Android\Android Studio\gradle\m2repository'
2015-04-01 10:44:23,256 [1680761]   INFO - .project.GradleExecutionHelper - Passing command -line args to Gradle Tooling API: [-Pandroid.injected.build.model.only= true , -Pandroid.injected.build.model.only.advanced= true , -Pandroid.injected.invoked.from.ide= true , --init-script, C:\Users\Administrator\AppData\Local\Temp\asLocalRepo3577806095284007233.gradle, --init-script, C:\Users\Administrator\AppData\Local\Temp\ijinit6508239471401468090.gradle]
2015-04-01 10:44:40,498 [1698003]   INFO - .project.GradleProjectResolver - Gradle project resolve error
org.gradle.tooling.BuildException: Could not run build action using Gradle installation 'C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1' .
  at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:57)
  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.runWorker(ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
  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:186)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.access$300(GradleProjectResolver.java:64)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:361)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:333)
  at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:203)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:116)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:64)
  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:48)
  at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137)
  at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123)
  at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.execute(ExternalSystemUtil.java:406)
  at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3$2.run(ExternalSystemUtil.java:483)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
  at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
  at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
  at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
Caused by: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring project ':cSipSimplemaster' .
  at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:77)
  at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
  at org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
  at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:108)
  at org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:97)
  at org.gradle.launcher. exec .InProcessBuildActionExecuter$DefaultBuildController.configure(InProcessBuildActionExecuter.java:84)
  at org.gradle.tooling.internal.provider.ClientProvidedBuildAction.run(ClientProvidedBuildAction.java:43)
  at org.gradle.tooling.internal.provider.ClientProvidedBuildAction.run(ClientProvidedBuildAction.java:31)
  at org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:119)
  at org.gradle.launcher. exec .InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
  at org.gradle.launcher. exec .InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
  at org.gradle.launcher.daemon.server. exec .ExecuteBuild.doBuild(ExecuteBuild.java:47)
  at org.gradle.launcher.daemon.server. exec .BuildCommandOnly.execute(BuildCommandOnly.java:34)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .WatchForDisconnection.execute(WatchForDisconnection.java:35)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .ForwardClientInput$2.call(ForwardClientInput.java:71)
  at org.gradle.launcher.daemon.server. exec .ForwardClientInput$2.call(ForwardClientInput.java:69)
  at org.gradle.util.Swapper.swap(Swapper.java:38)
  at org.gradle.launcher.daemon.server. exec .ForwardClientInput.execute(ForwardClientInput.java:69)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .LogToClient.doBuild(LogToClient.java:60)
  at org.gradle.launcher.daemon.server. exec .BuildCommandOnly.execute(BuildCommandOnly.java:34)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:70)
  at org.gradle.launcher.daemon.server. exec .BuildCommandOnly.execute(BuildCommandOnly.java:34)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .DaemonHygieneAction.execute(DaemonHygieneAction.java:39)
  at org.gradle.launcher.daemon.server. exec .DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
  at org.gradle.launcher.daemon.server. exec .StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:46)
  at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)
  at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':cSipSimplemaster' .
  at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:91)
  at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:86)
  at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:65)
  at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:504)
  at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:83)
  at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47)
  at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
  at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:129)
  at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
  ... 32 more
Caused by: java.lang.IllegalStateException: failed to find  target android-19 : C:\Users\Administrator\AppData\Local\Android\sdk
  at com.android.builder.sdk.DefaultSdkLoader.getTargetInfo(DefaultSdkLoader.java:88)
  at com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:90)
  at com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.groovy:467)
  at com.android.build.gradle.BasePlugin.access$0(BasePlugin.groovy)
  at com.android.build.gradle.BasePlugin$_createTasks_closure9.doCall(BasePlugin.groovy:372)
  at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
  at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
  at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83)
  at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:31)
  at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
  at com.sun.proxy.$Proxy12.afterEvaluate(Unknown Source)
  at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:79)
  ... 39 more
2015-04-01 10:44:40,500 [1698005]   WARN - nal.AbstractExternalSystemTask - failed to find  target android-19 : C:\Users\Administrator\AppData\Local\Android\sdk
com.intellij.openapi.externalSystem.model.ExternalSystemException: failed to find  target android-19 : C:\Users\Administrator\AppData\Local\Android\sdk
  at com.android.tools.idea.gradle.project.ProjectImportErrorHandler.createUserFriendlyError(ProjectImportErrorHandler.java:225)
  at com.android.tools.idea.gradle.project.ProjectImportErrorHandler.getUserFriendlyError(ProjectImportErrorHandler.java:103)
  at com.android.tools.idea.gradle.project.AndroidGradleProjectResolver.getUserFriendlyError(AndroidGradleProjectResolver.java:321)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:367)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:333)
  at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:203)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:116)
  at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:64)
  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:48)
  at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137)
  at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123)
  at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.execute(ExternalSystemUtil.java:406)
  at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3$2.run(ExternalSystemUtil.java:483)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
  at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
  at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
  at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
2015-04-01 10:44:40,500 [1698005]   WARN - radle.project.ProjectSetUpTask - 
2015-04-01 10:44:40,501 [1698006]   INFO - radle.project.ProjectSetUpTask - failed to find  target android-19 : C:\Users\Administrator\AppData\Local\Android\sdk
 
Consult IDE log for  more  details (Help | Show Log)
2015-04-01 10:44:59,763 [1717268]   INFO - ellij.vfs.persistent.FSRecords - Contents:16384 of 144781555, reuses:82 of 73161 for  1173
2015-04-01 10:45:13,819 [1731324]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done  in  77221 ms
2015-04-01 11:05:26,225 [2943730]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /emmet .xml file  is null
2015-04-01 11:05:26,335 [2943840]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for  $APP_CONFIG$ /postfixTemplates .xml file  is null

2.对应着,Android Studio中也有错误提示:

1
2
Error:failed to find target android-19 : C:\Users\Administrator\AppData\Local\Android\sdk
<a href="install.android.platform">Install missing platform(s) and sync project</a>

failed to sync gradle project CSipSimple-master

很明显:

好像是由于:

没有安装android的image,所以找不到android-19.

抽空再去安装android的image

3.然后点击了:

Install missing platform(s) and sync project

后,去安装:

SDK quick installation android sdk platform 19

installing requested componets for android sdk

对应log:

1
2
3
4
5
6
7
8
9
10
11
12
13
Loading SDK information...
Refresh Sources:
   Fetched Add-ons List successfully
   Refresh Sources
   Failed to fetch URL https: //dl-ssl .google.com /glass/gdk/addon .xml, reason: Connect Connection timed out: connect
Refresh Sources:
   Failed to fetch URL https: //dl-ssl .google.com /glass/gdk/addon .xml, reason: Connect Connection timed out: connect
 
Installing Archives:
   Preparing to install  archives
   Installing SDK Platform Android 4.4.2, API 19, revision 4
     Installed SDK Platform Android 4.4.2, API 19, revision 4
   Done. 1 package installed.

 

【总结】

此处Android Studio中出现

Error:failed to find target android-19

是因为没有安装Android SDK Platform 19(Android 4.4.2 API 19),去按照提示安装好即可消除此错误。



    本文转自 一点点征服   博客园博客,原文链接:http://www.cnblogs.com/ldq2016/p/5356535.html,如需转载请自行联系原作者




相关文章
|
3月前
|
Java Android开发 C++
Android Studio JNI 使用模板:c/cpp源文件的集成编译,快速上手
本文提供了一个Android Studio中JNI使用的模板,包括创建C/C++源文件、编辑CMakeLists.txt、编写JNI接口代码、配置build.gradle以及编译生成.so库的详细步骤,以帮助开发者快速上手Android平台的JNI开发和编译过程。
238 1
|
1月前
|
Java Unix Linux
Android Studio中Terminal运行./gradlew clean build提示错误信息
遇到 `./gradlew clean build`命令执行出错时,首先应检查错误信息的具体内容,这通常会指向问题的根源。从权限、环境配置、依赖下载、版本兼容性到项目配置本身,逐一排查并应用相应的解决措施。记住,保持耐心,逐步解决问题,往往复杂问题都是由简单原因引起的。
227 2
|
2月前
|
XML IDE 开发工具
🔧Android Studio高级技巧大公开!效率翻倍,编码不再枯燥无味!🛠️
【9月更文挑战第11天】在软件开发领域,Android Studio凭借其强大的功能成为Android开发者的首选IDE。本文将揭示一些提升开发效率的高级技巧,包括自定义代码模板、重构工具、高级调试技巧及多模块架构。通过对比传统方法,这些技巧不仅能简化编码流程,还能显著提高生产力。例如,自定义模板可一键插入常用代码块;重构工具能智能分析并安全执行代码更改;高级调试技巧如条件断点有助于快速定位问题;多模块架构则提升了大型项目的可维护性和团队协作效率。掌握这些技巧,将使你的开发之旅更加高效与愉悦。
64 5
|
3月前
|
编解码 Android开发
【Android Studio】使用UI工具绘制,ConstraintLayout 限制性布局,快速上手
本文介绍了Android Studio中使用ConstraintLayout布局的方法,通过创建布局文件、设置控件约束等步骤,快速上手UI设计,并提供了一个TV Launcher界面布局的绘制示例。
56 1
|
4天前
|
搜索推荐 Android开发 开发者
探索安卓开发中的自定义视图:打造个性化UI组件
【10月更文挑战第39天】在安卓开发的世界中,自定义视图是实现独特界面设计的关键。本文将引导你理解自定义视图的概念、创建流程,以及如何通过它们增强应用的用户体验。我们将从基础出发,逐步深入,最终让你能够自信地设计和实现专属的UI组件。
|
6天前
|
Android开发 Swift iOS开发
探索安卓与iOS开发的差异和挑战
【10月更文挑战第37天】在移动应用开发的广阔舞台上,安卓和iOS这两大操作系统扮演着主角。它们各自拥有独特的特性、优势以及面临的开发挑战。本文将深入探讨这两个平台在开发过程中的主要差异,从编程语言到用户界面设计,再到市场分布的不同影响,旨在为开发者提供一个全面的视角,帮助他们更好地理解并应对在不同平台上进行应用开发时可能遇到的难题和机遇。
|
8天前
|
XML 存储 Java
探索安卓开发之旅:从新手到专家
【10月更文挑战第35天】在数字化时代,安卓应用的开发成为了一个热门话题。本文旨在通过浅显易懂的语言,带领初学者了解安卓开发的基础知识,同时为有一定经验的开发者提供进阶技巧。我们将一起探讨如何从零开始构建第一个安卓应用,并逐步深入到性能优化和高级功能的实现。无论你是编程新手还是希望提升技能的开发者,这篇文章都将为你提供有价值的指导和灵感。
|
6天前
|
存储 API 开发工具
探索安卓开发:从基础到进阶
【10月更文挑战第37天】在这篇文章中,我们将一起探索安卓开发的奥秘。无论你是初学者还是有经验的开发者,这篇文章都将为你提供有价值的信息和建议。我们将从安卓开发的基础开始,逐步深入到更复杂的主题,如自定义组件、性能优化等。最后,我们将通过一个代码示例来展示如何实现一个简单的安卓应用。让我们一起开始吧!
|
7天前
|
存储 XML JSON
探索安卓开发:从新手到专家的旅程
【10月更文挑战第36天】在这篇文章中,我们将一起踏上一段激动人心的旅程,从零基础开始,逐步深入安卓开发的奥秘。无论你是编程新手,还是希望扩展技能的老手,这里都有适合你的知识宝藏等待发掘。通过实际的代码示例和深入浅出的解释,我们将解锁安卓开发的关键技能,让你能够构建自己的应用程序,甚至贡献于开源社区。准备好了吗?让我们开始吧!
19 2
|
8天前
|
Android开发
布谷语音软件开发:android端语音软件搭建开发教程
语音软件搭建android端语音软件开发教程!