こんにちは、私はAndroid Studio
を初めて使っています。Android Studio 3.0.1が依存関係のエラーを解決できない
はちょうど私がgradle
依存関係のエラーを取得していますWindows 7の
に最新3.0.1
インストールし、私も私の最初の基本的なプロジェクトを開始することはできませんよ。
私はこのサイトまたはインターネット上のどこにいても見つけたすべての方法を試しましたが、何も機能しませんでした。
ご迷惑をかけてください、間違います。
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve junit:junit:4.12.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.squareup:javawriter:2.1.1.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve javax.inject:javax.inject:1.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve org.hamcrest:hamcrest-library:1.3.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve org.hamcrest:hamcrest-integration:1.3.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.google.code.findbugs:jsr305:2.0.1.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve junit:junit:4.12.
Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve junit:junit:4.12.
ありがとうございました。
あなたの設定で
ここにあなたのGradleファイルの内容を投稿してください。 (プロジェクトとモジュールの両方のbuild.gradle) – Mercato
ここに全体のgradleファイルを投稿するか、[Androidスタジオ3.0に移行する](https://developer.android.com/studio/build/gradle-plugin-3-0- 0-migration.html) –
Androidスタジオの設定で「オフラインモード」が有効になっているか、インターネットに接続していない可能性があります。それを確認してください。また、最新のgradleバージョンを使用していることを確認してください。 –