2017-09-25 18 views
0

エラー:解決に失敗しました:com.google.android.gms:PLAY-サービス - 地下:[11.0.4]エラー:解決に失敗しました:com.google.android.gms

エラー:解決に失敗しました:com.google.android.gms:遊ぶ - サービス・タスク:[11.0.4]

enter image description here

enter image description here

enter image description here

私は私のプロジェクトのビルドが正常にアンドロイドスタジオ2.3.2バージョンを使用しますが、私はこのエラーを取得しています2.3.3にアンドロイドスタジオのバージョンに更新され、更新Google Playのサービスの後に助けてください。

は私のフォルダにはプレイサービス - 地下と遊ぶ・サービス・タスクフォルダはありません

私はこの「コンパイル「com.google.android.gmsコメントするとき:再生する-サービス-場所:11.0。

:モジュールのGradleファイル

buildscript { 
    repositories { 
     jcenter() 
    } 

    dependencies { 
     classpath 'com.android.tools.build:gradle:2.3.3' 
    } 
} 

allprojects { 
    buildDir = "C:/tmp/${rootProject.name}/${project.name}" 
    repositories { 
     jcenter() 
    } 
} 

ext { 

    compileSdkVersion = 25 
    buildToolsVersion = "25.0.2" 
    supportLibVersion = "25.3.1" 
    minSdkVersion = 14 
    targetSdkVersion = 25 
} 

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

:私は私のプロジェクトは

プロジェクトのGradleファイルをコンパイルしていない、次にコメントを解除した場合、私のプロジェクトは罰金コンパイル4' 」行

apply plugin: 'com.android.application' 

android { 

    compileSdkVersion rootProject.ext.compileSdkVersion 
    buildToolsVersion rootProject.ext.buildToolsVersion 

    useLibrary 'org.apache.http.legacy' 

    defaultConfig { 
     applicationId "package" 
     minSdkVersion rootProject.ext.minSdkVersion 
     targetSdkVersion rootProject.ext.targetSdkVersion 

     compileOptions { 
      sourceCompatibility JavaVersion.VERSION_1_7 
      targetCompatibility JavaVersion.VERSION_1_7 
     } 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
     debug { 
      debuggable true 
     } 
    } 
    lintOptions { 
     checkReleaseBuilds false 
     abortOnError false 
    } 

} 


repositories { 
    jcenter { 
     url "http://jcenter.bintray.com/" 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 

    compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:support-v4:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:design:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}" 
    compile 'com.google.android.gms:play-services-location:11.0.4' 

    compile 'com.github.bumptech.glide:glide:3.7.0' 
    compile 'de.hdodenhof:circleimageview:2.1.0' 
    compile 'com.github.beyka:androidtiffbitmapfactory:0.9.6.2' 

    debugCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' 
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' 

} 

enter image description here

+1

「リポジトリとの同期プロジェクトをインストールし、」SDKマネージャに移動し、手動で –

+0

多分それを試してみてください、私はインストールクリックが、何も – Lingeshwaran

+1

をhappendedありません私のSDKのパスにフォルダがありません。手動で行う方法を教えてください。 –

答えて

1

プロジェクトのGradleファイルは:

buildscript { 
    repositories { 
     jcenter() 
     maven { 
     url 'https://maven.google.com'  
     } 
    } 

    dependencies { 
     classpath 'com.android.tools.build:gradle:2.3.3' 
    } 
} 

allprojects { 
    buildDir = "C:/tmp/${rootProject.name}/${project.name}" 
    repositories { 
     jcenter() 
     maven { 
      url 'https://maven.google.com'  
     } 
    } 
} 
関連する問題