2016-11-04 9 views
0

私のMacでプロジェクトを構築することができません。これは誰かによってコード化され、私に与えられました。お勧めしますが、まだ私のgradle-wrapper.propertiesがファイルされている問題以下Androidスタジオ - Gradleのバージョンは2.14.1です。現在のバージョンは2.10です

Error:(1, 1) A problem occurred evaluating project ':app'. 
Failed to apply plugin [id 'com.android.application'] Minimum supported Gradle version is 2.14.1. Current version is 2.10. 
If using the gradle wrapper, try editing the distributionUrl in /Users/*****/Downloads/android_project/gradle/wrapper/gradle-wrapper.properties to gradle-2.14.1-all.zip. 

が直面しているように私は私のgradle-wrapper.propertiesを変更しました

distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.0-all.zip 

Gradleの同期出力も、このエラーを示している たIそれは上記

Error:(30, 13) Failed to resolve: 
com.android.support.constraint:constraint-layout:1.0.0-alpha4 
<a href="install.m2.repo">Install Repository and sync project</a><br><a  
    href="openFile:/Users/*****/Downloads/android_project/app/build.gradle"> 
Show in File</a><br><a href="open.dependency.in.project.structure"> 
Show in Project Structure dialog</a> 
+0

あなたは彼が更新を望んでいないかどうか、「他の誰か」バンプ、それらを見ることができます(それは、α4を使用してコードにいくつかの修正が必要な場合があります私は盲目的にグラデルスクリプトを変えるだけではない)。次に、アルファ4がインストールされていることを確認します(Androidスタジオ - > SDKマネージャ(ツールバーのアイコン) - >中間の「SDKツール」タブ - >「サポートリポジトリ」グループ)。特定のalpha4バージョンのアーカイブを選択します。 – Ped7g

答えて

0

とは何かを持っている場合distributionUrlが間違っているかわからない - 解決することはできませんよ。バージョン2.14.0を指します。それを次のように変更してください:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 
1

ローカルのグラデルディストリビューションを使用しています。それを変更するには

Android Studio -> File -> Settings -> Build, Execution, Deployment -> Gradle -> Use default gradle wrapper 

そして、実際に最新のバージョンを指し示す必要があるgradle-wrapper.propertiesを使用します。

ので、制約レイアウトのベータ3版はすでに利用可能ありhere at gradle distributions

関連する問題