2017-03-27 7 views
0

私はAndroidが初めてです(ちょうど最近開始しました)。私は私のアプリのbuild.gradleファイルへの依存性に次の追加:装備されていない装備の依存関係。ビルドの失敗

compile 'com.squareup.retrofit2:retrofit:2.0.2' 
compile 'com.squareup.retrofit2:converter-gson:2.0.2' 

ビルドが失敗し、私は次のエラーメッセージが出ます:

Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not resolve com.squareup.retrofit2:retrofit:2.0.2. Required by: MedicalRecordTrackingSystem:app:unspecified Could not resolve com.squareup.retrofit2:retrofit:2.0.2. Could not get resource ' https://jcenter.bintray.com/com/squareup/retrofit2/retrofit/2.0.2/retrofit-2.0.2.pom '. Could not GET ' https://jcenter.bintray.com/com/squareup/retrofit2/retrofit/2.0.2/retrofit-2.0.2.pom '. jcenter.bintray.com Could not resolve com.squareup.retrofit2:converter-gson:2.0.2. Required by: MedicalRecordTrackingSystem:app:unspecified Could not resolve com.squareup.retrofit2:converter-gson:2.0.2.

私は何をすべきか?

+0

あなたのGradleはリポジトリを解決できないように見えますuがフルGradleのファイル(それらの両方投稿してください可能性 - アプリとプロジェクトを) –

答えて

0

のみを使用し、この依存関係:

compile 'com.squareup.retrofit2:retrofit:2.2.0' 
0

最新のを使用します。

compile 'com.squareup.retrofit2:retrofit:2.2.0' 
compile 'com.squareup.retrofit2:converter-gson:2.2.0' 
関連する問題