2017-12-23 8 views
1

私はのMacBook ProのAndroid Studioをインストール持っていると私は私はまだ、まだ、私はそれを動作させるために必要なすべてのSDKをインストールする必要があり確信しているが、エラーに問題があります。以下のエラーメッセージエラー:解決できませんでしたcom.android.support:appcompat-v7:26.0.0-beta1

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.0.0-beta1.

Could not resolve com.android.support:appcompat-v7:26.0.0-beta1. Required by: project :app

No cached version of com.android.support:appcompat-v7:26.0.0-beta1 available for offline mode.

であることは、ここですべて事前に私のGradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 26 
    defaultConfig { 
     applicationId "com.example.air.my1st" 
     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.0.0-beta1' 
    implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
    implementation 'com.android.support:design:26.0.0-beta1' 
    testImplementation 'junit:junit:4.12' 
    androidTestImplementation 'com.android.support.test:runner:0.5' 
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2' 
} 

おかげです。

+0

プロジェクトの 'build.gradle'ファイル内の' repositories'閉鎖の両方に 'グーグルを()'追加 "{{リポジトリがallprojects" に追加します。次に、あなたの '26.0.0-beta1'依存関係を' 26.1.0'に切り替えます。 @CommonsWare – CommonsWare

+0

私はすでに@CommonsWare –

+0

26.1.0に26.0.0-β1の依存関係を切り替えた後、おかげで、それが正常に動作し、すでに両方のリポジトリでグーグルを()が...おかげで、これらの行は、問題を修正する理由を説明することを検討してください。 –

答えて

関連する問題