I followed the Google documentation to integrate my application into Google Analytics. But when adding
apply plugin: 'com.google.gms.google-services'
and creating my application, I ran into this error:
Error:(49, 0) For input string: "+"
These are the settings I used in build.gradle of my application:
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.myapp.xyz" manifestPlaceholders = [ manifestApplicationId : "${applicationId}", onesignal_app_id : "ccd48c54-2069-41f9-8ff7-54c7a12f2d18a", onesignal_google_project_number: "306632981237" ] minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { mavenCentral() } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') // compile 'com.android.support:appcompat-v7:22.2.1' compile project(':facebook') compile 'com.android.support:design:22.2.1' compile 'com.android.support:palette-v7:22.2.1' compile 'com.astuetz:pagerslidingtabstrip:1.0.1' compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:support-v4:22.2.1' compile 'com.onesignal:OneSignal: 1.+@aar ' compile 'com.google.android.gms:play-services-gcm:+' compile 'com.google.android.gms:play-services:8.4.0' compile 'com.google.android.gms:play-services-analytics:8.4.0' } apply plugin: 'com.google.gms.google-services'
This is the parameter in the build.gradle application:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' classpath 'com.google.gms:google-services:2.0.0-alpha6'
android
Mina fared
source share