2015-11-06 188 views
2

我得到這個錯誤,我不記得,但我想後,我做出以下版本的一系列更新的:安卓應用程序:processDebugGoogleServices

Android Studio 1.5 beta 
Build tools 23.0.2 
Support libraries 23.1.0 

我gradle.build(應用程序):

apply plugin: 'com.android.application' 
apply plugin: 'com.google.gms.google-services' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.2" 

    defaultConfig { 
     applicationId "com.example.hsoni.corpchat" 
     minSdkVersion 14 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'com.android.support:appcompat-v7:23.1.0' 
    compile 'com.github.johnkil.android-robototextview:robototextview:2.4.0' 
    compile 'com.android.support:design:23.1.0' 
    compile 'de.hdodenhof:circleimageview:1.3.0' 
    compile 'com.github.clans:fab:1.6.0' 
    compile 'com.android.support:cardview-v7:23.1.0' 
    compile 'com.android.support:recyclerview-v7:23.1.0' 
    compile 'org.igniterealtime.smack:smack-android:4.1.3' 
    compile 'org.igniterealtime.smack:smack-bosh:4.1.3' 
    compile 'org.igniterealtime.smack:smack-tcp:4.1.3' 
    compile 'org.igniterealtime.smack:smack-im:4.1.3' 
    compile 'org.jxmpp:jxmpp-jid:0.5.0-alpha6' 
    compile 'org.igniterealtime.smack:smack-extensions:4.1.3' 
    compile 'com.android.support:support-v4:23.1.0' 
    compile files('libs/volley-1.0-SNAPSHOT.jar') 
    compile project(':emoji') 
    compile 'com.cocosw:bottomsheet:1.2.0' 
    compile project(':aFileChooser') 
    compile "com.google.android.gms:play-services:8.3.0" 
} 

錯誤日誌:

Information:Gradle tasks [:app:assembleDebug] 
Warning:Dependency xpp3:xpp3:1.1.4c is ignored for debug as it may be conflicting with the internal version provided by Android. 
     In case of problem, please repackage it with jarjar to change the class packages 
Warning:Dependency xpp3:xpp3:1.1.4c is ignored for debug as it may be conflicting with the internal version provided by Android. 
     In case of problem, please repackage it with jarjar to change the class packages 
Warning:Dependency org.apache.httpcomponents:httpclient:4.3.3 is ignored for debug as it may be conflicting with the internal version provided by Android. 
     In case of problem, please repackage it with jarjar to change the class packages 
Warning:Dependency xpp3:xpp3:1.1.4c is ignored for release as it may be conflicting with the internal version provided by Android. 
     In case of problem, please repackage it with jarjar to change the class packages 
Warning:Dependency xpp3:xpp3:1.1.4c is ignored for release as it may be conflicting with the internal version provided by Android. 
     In case of problem, please repackage it with jarjar to change the class packages 
Warning:Dependency org.apache.httpcomponents:httpclient:4.3.3 is ignored for release as it may be conflicting with the internal version provided by Android. 
     In case of problem, please repackage it with jarjar to change the class packages 
:aFileChooser:preBuild UP-TO-DATE 
:aFileChooser:preReleaseBuild UP-TO-DATE 
:aFileChooser:compileReleaseNdk UP-TO-DATE 
:aFileChooser:compileLint 
:aFileChooser:copyReleaseLint UP-TO-DATE 
:aFileChooser:checkReleaseManifest 
:aFileChooser:preDebugAndroidTestBuild UP-TO-DATE 
:aFileChooser:preDebugBuild UP-TO-DATE 
:aFileChooser:preDebugUnitTestBuild UP-TO-DATE 
:aFileChooser:preReleaseUnitTestBuild UP-TO-DATE 
:aFileChooser:prepareComAndroidSupportSupportV42310Library UP-TO-DATE 
:aFileChooser:prepareReleaseDependencies 
:aFileChooser:compileReleaseAidl UP-TO-DATE 
:aFileChooser:compileReleaseRenderscript UP-TO-DATE 
:aFileChooser:generateReleaseBuildConfig UP-TO-DATE 
:aFileChooser:generateReleaseAssets UP-TO-DATE 
:aFileChooser:mergeReleaseAssets UP-TO-DATE 
:aFileChooser:generateReleaseResValues UP-TO-DATE 
:aFileChooser:generateReleaseResources UP-TO-DATE 
:aFileChooser:mergeReleaseResources UP-TO-DATE 
:aFileChooser:processReleaseManifest UP-TO-DATE 
:aFileChooser:processReleaseResources UP-TO-DATE 
:aFileChooser:generateReleaseSources UP-TO-DATE 
:aFileChooser:compileReleaseJavaWithJavac UP-TO-DATE 
:aFileChooser:extractReleaseAnnotations UP-TO-DATE 
:aFileChooser:mergeReleaseProguardFiles UP-TO-DATE 
:aFileChooser:processReleaseJavaRes UP-TO-DATE 
:aFileChooser:packageReleaseJar UP-TO-DATE 
:aFileChooser:packageReleaseJniLibs UP-TO-DATE 
:aFileChooser:packageReleaseLocalJar UP-TO-DATE 
:aFileChooser:packageReleaseRenderscript UP-TO-DATE 
:aFileChooser:packageReleaseResources UP-TO-DATE 
:aFileChooser:bundleRelease UP-TO-DATE 
:app:preBuild UP-TO-DATE 
:app:preDebugBuild UP-TO-DATE 
:app:checkDebugManifest 
:app:preReleaseBuild UP-TO-DATE 
:emoji:preBuild UP-TO-DATE 
:emoji:preReleaseBuild UP-TO-DATE 
:emoji:compileReleaseNdk UP-TO-DATE 
:emoji:compileLint 
:emoji:copyReleaseLint UP-TO-DATE 
:emoji:checkReleaseManifest 
:emoji:preDebugAndroidTestBuild UP-TO-DATE 
:emoji:preDebugBuild UP-TO-DATE 
:emoji:preDebugUnitTestBuild UP-TO-DATE 
:emoji:preReleaseUnitTestBuild UP-TO-DATE 
:emoji:prepareComAndroidSupportSupportV42301Library UP-TO-DATE 
:emoji:prepareReleaseDependencies 
:emoji:compileReleaseAidl UP-TO-DATE 
:emoji:compileReleaseRenderscript UP-TO-DATE 
:emoji:generateReleaseBuildConfig UP-TO-DATE 
:emoji:generateReleaseAssets UP-TO-DATE 
:emoji:mergeReleaseAssets UP-TO-DATE 
:emoji:generateReleaseResValues UP-TO-DATE 
:emoji:generateReleaseResources UP-TO-DATE 
:emoji:mergeReleaseResources UP-TO-DATE 
:emoji:processReleaseManifest UP-TO-DATE 
:emoji:processReleaseResources UP-TO-DATE 
:emoji:generateReleaseSources UP-TO-DATE 
:emoji:compileReleaseJavaWithJavac UP-TO-DATE 
:emoji:extractReleaseAnnotations UP-TO-DATE 
:emoji:mergeReleaseProguardFiles UP-TO-DATE 
:emoji:processReleaseJavaRes UP-TO-DATE 
:emoji:packageReleaseJar UP-TO-DATE 
:emoji:packageReleaseJniLibs UP-TO-DATE 
:emoji:packageReleaseLocalJar UP-TO-DATE 
:emoji:packageReleaseRenderscript UP-TO-DATE 
:emoji:packageReleaseResources UP-TO-DATE 
:emoji:bundleRelease UP-TO-DATE 
:app:prepareComAndroidSupportAppcompatV72310Library UP-TO-DATE 
:app:prepareComAndroidSupportCardviewV72310Library UP-TO-DATE 
:app:prepareComAndroidSupportDesign2310Library UP-TO-DATE 
:app:prepareComAndroidSupportMediarouterV72220Library UP-TO-DATE 
:app:preDebugAndroidTestBuild UP-TO-DATE 
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE 
:app:prepareComAndroidSupportRecyclerviewV72310Library UP-TO-DATE 
:app:prepareComAndroidSupportSupportV42310Library UP-TO-DATE 
:app:prepareComCocoswBottomsheet120Library UP-TO-DATE 
:app:prepareComGithubClansFab160Library UP-TO-DATE 
:app:prepareComGithubJohnkilAndroidRobototextviewRobototextview240Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServices830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesAds830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesAppstate830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesAuth830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesBase830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesBasement830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesCast830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesDrive830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesFitness830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesGames830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesGcm830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesIdentity830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesLocation830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesMaps830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesMeasurement830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesNearby830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesPanorama830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesPlus830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesVision830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesWallet830Library UP-TO-DATE 
:app:prepareComGoogleAndroidGmsPlayServicesWearable830Library UP-TO-DATE 
:app:prepareCorpChatAFileChooserUnspecifiedLibrary UP-TO-DATE 
:app:prepareCorpChatEmojiUnspecifiedLibrary UP-TO-DATE 
:app:prepareDeHdodenhofCircleimageview130Library UP-TO-DATE 
:app:prepareDebugDependencies 
:app:compileDebugAidl UP-TO-DATE 
:app:compileDebugRenderscript UP-TO-DATE 
:app:generateDebugBuildConfig UP-TO-DATE 
:app:generateDebugAssets UP-TO-DATE 
:app:mergeDebugAssets UP-TO-DATE 
:app:generateDebugResValues UP-TO-DATE 
:app:processDebugGoogleServices 
Found com.google.android.gms:play-services:8.3.0, but version 8.1.0 is needed 
Found com.google.android.gms:play-services:8.3.0, but version 8.1.0 is needed 
Found com.google.android.gms:play-services:8.3.0, but version 8.1.0 is needed 
Found com.google.android.gms:play-services:8.3.0, but version 8.1.0 is needed 
Found com.google.android.gms:play-services:8.3.0, but version 8.1.0 is needed 
:app:processDebugGoogleServices FAILED 
Error:Execution failed for task ':app:processDebugGoogleServices'. 
> Please fix the version conflict. 
Information:BUILD FAILED 
Information:Total time: 2.226 secs 
Information:1 error 

回答

2

只需在主Gradle文件中設置:

dependencies { 

    ... 
    classpath 'com.google.gms:google-services:1.5.0-beta2' 

}