UpendraSingh / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Analytics setup documentation fails to build #899

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Name of related component: Documentation

URL of the documentation page :

Issue summary:
Name of related library and version, if applicable (e.g. Java, Python,
HTTP, Objective-C, etc.):
Java: 1.8.0_71-b15x64 Oracle Corporation
OS: Windows 7(amd64) v6.1 Service Pack 1 (1920x1080, 1920x1080) 
Android Studio: 2.0 Beta 6, AI-143.2637817, 20160226

Using the configuration given in the setup page gives the error:
Found com.google.android.gms:play-services-analytics:8.4.0, but version 8.3.0 
is needed for the google-services plugin.

Steps to reproduce issue:
1. Create new Android app in Android Studio
2. Follow instructions at 
https://developers.google.com/analytics/devguides/collection/android/v4/#set-up-
your-project.
 * Add plugin 'com.google.gms:google-services:2.0.0-alpha6' to project classpath and apply plagin (tried -beta6 which is latest at https://bintray.com/android/android-tools/com.google.gms.google-services/ as well)
 * Add library 'com.google.android.gms:play-services-analytics:8.4.0'
3. Build project

Expected output:
BUILD SUCCESS

Actual results:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':operativesPlus:processMapPlusDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the 
google-services plugin (information about the latest
version is available at 
https://bintray.com/android/android-tools/com.google.gms.google-services/) or 
updating the version of
 com.google.android.gms to 8.3.0.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.

BUILD FAILED

Original issue reported on code.google.com by zboa...@gmail.com on 2 Mar 2016 at 11:17

GoogleCodeExporter commented 8 years ago
Thanks for reporting this issue.  Which version of the gradle plugin are you 
using?

Try using the -beta6 version of the plugin in your project classpath:

classpath 'com.android.tools.build:gradle:2.0.0-beta6'

Original comment by t...@google.com on 2 Mar 2016 at 6:00

GoogleCodeExporter commented 8 years ago
Thanks for getting back so quickly! 

I'm already using -beta6 of the android plugin as well as for Google play 
services plugin. 

Am using play-services 8.3.0 as a compromise for the time being.

Original comment by zboa...@gmail.com on 3 Mar 2016 at 10:35

GoogleCodeExporter commented 8 years ago
Let's see if Gradle is causing issues:

- If possible, consider using the default gradle wrapper in Android Studio.  
The setting can be found under "Build, Execution, Deployment"  => "Build Tools" 
=> "Gradle".

- If using a local Gradle distribution, try upgrading to the latest Gradle 
version.

Original comment by t...@google.com on 3 Mar 2016 at 5:39

GoogleCodeExporter commented 8 years ago
Closing issue - please reopen if this is still happening.  Thanks!

Original comment by t...@google.com on 7 Mar 2016 at 11:01