3

私はアンドロイドスタジオバージョン3.0.0を使用しています。Androidスタジオ3はリポジトリをダウンロードできません(エラー:リソース用のSHA1のダウンロードに失敗しました)

更新前私はSDKマネージャを使用してアップデートサポートライブラリを使用しています。更新後アンドロイドスタジオ3私はhttps://dl.google.com/dl/android/maven2/経由で更新する必要があります。だから私はサポートライブラリ26.1.0が必要です。非同期Gradleの上

私はこのエラーを持っている:https://dl.google.com/dl/android/maven2/junit/junit/4.12/junit-4.12.pom

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve junit:junit:4.12. 

Could not resolve junit:junit:4.12. 
Required by: 
    project :app > com.android.support.test:runner:1.0.1 
> Could not resolve junit:junit:4.12. 
    > Failed to download SHA1 for resource 'https://dl.google.com/dl/android/maven2/junit/junit/4.12/junit-4.12.pom'. 
      > For input string: "<!" 

なぜこれをダウンロードすることはできませんか?

私はプロキシを使用していますがダウンロードできません。

このエラーは、すべての依存ライブラリのリソースためにSHA1のダウンロードに失敗しました。このを修正する方法(appcampatv7、デザイン、annonationsおよびなど)

を示しているのですか?

UPDATE:

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 

    repositories { 
     google() 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:3.0.0' 


     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     google() 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 26 
    buildToolsVersion "26.0.2" 
    defaultConfig { 
     applicationId "com.example.testtesttest" 
     minSdkVersion 15 
     targetSdkVersion 26 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    implementation fileTree(dir: 'libs', include: ['*.jar']) 
    implementation 'com.android.support:appcompat-v7:26.1.0' 
    implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
    implementation 'com.android.support:design:26.1.0' 
    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

'リポジトリ{ ....達人{URL 'https://maven.google.com'} .....}' ' –

+0

リポジトリ{ 達人{URL「HTTP: //repo1.maven.org/maven2' } jcenter {URL "http://jcenter.bintray.com/"} } ' –

+0

@IntelliJAmiyaにセット:' allprojects { リポジトリ{グーグル() jcenter () } } '。 – grizzly

答えて

4

は、検索の多くの後に、この問題を修正しました。 gradle.properticesファイルセットプロキシでhttphttpsの両方に再度同期します。

systemProp.http.proxyHost=127.0.0.1 
systemProp.https.proxyPort=12345 
org.gradle.jvmargs=-Xmx1234m 
systemProp.https.proxyHost=127.0.0.1 
systemProp.http.proxyPort=12345 
関連する問題