谷歌播放服务错误 [英] google play service error

查看:195
本文介绍了谷歌播放服务错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了以下错误:

 错误:(1,1)评估项目':app'时发生问题。 
>无法应用插件[id'com.android.application']
> Gradle版本2.10是必需的。当前版本是2.8。如果使用gradle包装,请尝试编辑C:\ Users \TARUN\Desktop\GingerBuds\gradle\wrapper\gradle-wrapper.properties中的distributionUrl到gradle-2.10-all.zip

然后我改变了上面的gradle路径,然后出现以下问题:

在构建我的项目的同时,我得到了这个异常。我重建并清理项目并更新了谷歌播放服务,然后我也有错误。任何人都可以请帮助我如何解决这个问题。

 错误:任务':app:compileDebugJavaWithJavac'的执行失败。 
java.io.FileNotFoundException:C:\ Users \TARUN\Desktop\Gingerbuds\app\build\intermediates\exploded-aar\com.google.android.gms\play -services\8.4.0\jars\classes.jar(系统找不到指定的路径)

Build.gradle

  apply plugin:'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion23.0.1

defaultConfig {
applicationIdcom.kitchenvilla.gingerbuds
minSdkVersion 15
targetSdkVersion 23
versionCode 24
versionName1.2.2
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android -optimize.txt'),'proguard-rules.pro'
}
}
}

android {
useLibrary'org.apache.http .legac y'
}
android {
publishNonDefault true
}


依赖项{
编译fileTree(dir:'libs' ,包括:['* .jar'])
compile'c​​om.android.support:recyclerview-v7:23.0.0'
compile'c​​om.mcxiaoke.volley:library:1.0.15'
编译'org.apmem.tools:layouts:1.10@aar'
编译'com.android.support:appcompat-v7:23.0.0'
编译'com.android.support:design :23.0.0'
compile'c​​om.google.android.gms:play-services-maps:8.4.0'
compile'c​​om.google.android.gms:play-services:8.4.0 '
compile'c​​om.android.support:support-v4:23.0.0'
compile'c​​om.pkmmte.view:circularimageview:1.1'
compile'c​​om.squareup.picasso:picasso :2.3.2'
compile'c​​om.facebook.android:facebook-android-sdk:4.7.0'
}


解决方案

这将解决它

$ pre code> {
c lasspath'com.android.tools.build:gradle:1.5.0'
classpath'com.google.gms:google-services:2.0.0-alpha2'
}



  compile'c​​om .google.android.gms:play-services:8.3.0'


I got this below error

Error:(1, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in C:\Users\TARUN\Desktop\GingerBuds\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

Then I changed the above gradle path, Then following problem occurred,

I am getting this exception, while building my project . I rebuild and clean the project and updated google-play-services , then also i got error. can anyone please help me how to solve this.

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
java.io.FileNotFoundException: C:\Users\TARUN\Desktop\Gingerbuds\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified)

Build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.kitchenvilla.gingerbuds"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 24
        versionName "1.2.2"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

android {
    useLibrary 'org.apache.http.legacy'
}
android {
    publishNonDefault true
}


dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:recyclerview-v7:23.0.0'
    compile 'com.mcxiaoke.volley:library:1.0.15'
    compile 'org.apmem.tools:layouts:1.10@aar'
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.android.support:design:23.0.0'
    compile 'com.google.android.gms:play-services-maps:8.4.0'
    compile 'com.google.android.gms:play-services:8.4.0'
    compile 'com.android.support:support-v4:23.0.0'
    compile 'com.pkmmte.view:circularimageview:1.1'
    compile 'com.squareup.picasso:picasso:2.3.2'
    compile 'com.facebook.android:facebook-android-sdk:4.7.0'
}

解决方案

this will solve it

dependencies {
    classpath 'com.android.tools.build:gradle:1.5.0'
    classpath 'com.google.gms:google-services:2.0.0-alpha2'
}

and

compile 'com.google.android.gms:play-services:8.3.0'

这篇关于谷歌播放服务错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆