简体   繁体   English

从github导入Android Studio项目时发生Gradle构建错误

[英]Gradle build error when importing project of android studio from github

Hi dear I import a project from github but when gradle is build this error I am facing please help me for that 嗨,亲爱的我从github导入了一个项目,但是当gradle构建时,我面临的这个错误请帮帮我

Error:Could not find any version that matches com.android.tools.build:gradle:1.2.3.+.
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/maven-metadata.xml
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/
    https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml
Required by:
    androidstudio-accelerometer-gps-master:WhenMoving:unspecified

This is the link of github project : enter link description here 这是github项目的链接: 在此处输入链接描述

Might not help too much, but what did work for me is that I had to go to Gradle website and download the newest Gradle and install it. 可能没有太大帮助,但是对我有用的是我必须访问Gradle网站并下载最新的Gradle并进行安装。 Although I am running a mac and a lot of work is needed to properly prepare the environment variables for mac, but in the sense that you could possibly have the same issue I would suggest that. 尽管我正在运行Mac,并且需要为正确准备Mac的环境变量而进行大量工作,但是从某种意义上说,我建议您这样做。

Go to Gradle website, by Googling it and download the latest Gradle files. 通过谷歌搜索访问Gradle网站并下载最新的Gradle文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM