android Gradle同步错误(匹配版本)(android Gradle sync error (match version))

编程入门 行业动态 更新时间:2024-10-23 03:23:35
android Gradle同步错误(匹配版本)(android Gradle sync error (match version))

嘿家伙我两天后得到这个gradle同步错误: 错误:找不到与com.android.tools.build:gradle:1.3.01.0.+匹配的任何版本。 这是gradle文件:

println "-------------------------------------------------" println "Build ResideMenu with:\n\tbuildToolsVersion = " + System.properties['buildToolsVersion'] println "\tandroidGradlePluginVersion = " + System.properties['androidGradlePluginVersion'] println "\tfile.encoding = " + System.properties['file.encoding'] println "\tCharset.defaultCharset() = " + java.nio.charset.Charset.defaultCharset().toString() println "-------------------------------------------------\n" ext { compileSdkVersion = 19 buildToolsVersion = System.properties['buildToolsVersion'] minSdkVersion = 9 targetSdkVersion = 14 } buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' + System.properties['androidGradlePluginVersion'] } } allprojects { tasks.withType(JavaCompile) { options.encoding = "UTF-8" } }

hey guys im getting this gradle sync error since two days : Error:Could not find any version that matches com.android.tools.build:gradle:1.3.01.0.+. here is the gradle files :

println "-------------------------------------------------" println "Build ResideMenu with:\n\tbuildToolsVersion = " + System.properties['buildToolsVersion'] println "\tandroidGradlePluginVersion = " + System.properties['androidGradlePluginVersion'] println "\tfile.encoding = " + System.properties['file.encoding'] println "\tCharset.defaultCharset() = " + java.nio.charset.Charset.defaultCharset().toString() println "-------------------------------------------------\n" ext { compileSdkVersion = 19 buildToolsVersion = System.properties['buildToolsVersion'] minSdkVersion = 9 targetSdkVersion = 14 } buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' + System.properties['androidGradlePluginVersion'] } } allprojects { tasks.withType(JavaCompile) { options.encoding = "UTF-8" } }

最满意答案

不确定您要添加到依赖项的末尾但它应该如下所示:

dependencies { classpath 'com.android.tools.build:gradle:1.3.0' }

Not sure what you're trying to add to the end of the dependency but it should look like this:

dependencies { classpath 'com.android.tools.build:gradle:1.3.0' }

更多推荐

本文发布于:2023-08-05 17:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1435742.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   版本   Gradle   android   version

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!