2017-11-19 13 views
0

最近、アンドロイドスタジオをインストールしましたが、空のプロジェクトを構築できません!問題はどこだ?!!
あなたは依存関係の内部でgradle.build内のすべてのテストファイル(アプリ)を削除しようとすることができ、同期の問題の詳細に私はアンドロイドスタジオで最初の空のプロジェクトを構築できません

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support.test:runner:1.0.1. 
 

 
Could not resolve com.android.support.test:runner:1.0.1. 
 
Required by: 
 
    project :app 
 
> Could not resolve com.android.support.test:runner:1.0.1. 
 
    > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.pom'. 
 
      > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.pom'. 
 
        > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
 
           > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
 
               > unable to find valid certification path to requested target

+1

通常のブラウザを使用してpomファイルをダウンロードできますか?リンク: 'https:// dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.pom' – ademar111190

+0

いいえ!私は404エラーがありません – Smaillns

+0

それは、そのファイルをダウンロードする必要があるため、プロジェクトがビルドされていないようです。ここで私はダウンロードすることができるので、それはいくつかのインターネットの問題だと思います。 – ademar111190

答えて

1

を怒鳴る見つけ、それがこの

testImplementation 'junit:junit:4.12' 
androidTestImplementation 'com.android.support.test:runner:1.0.1' 
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 

多分理由あなたの問題のように見えますインターネットに接続して、ファイルをダウンロードできないようにします。

+0

それは唯一の問題ではないようです! – Smaillns

+0

':app @ debugUnitTest/compileClasspath'の依存関係を解決できません:com.android.support:appcompat-v7:26.1.0を解決できませんでした。 – Smaillns

+0

**設定 - >ビルド、実行、デプロイメント - > Gradle **がオフライン作業中であるかどうかをチェックしましたか? –

関連する問題