I am adding Google Analytics to my application. When I go to Real Time > Overview , I see 1.0 under the App Version . My question is: where does Google Analytics get this 1.0 number from?

This is how I run Analytics in onCreate() my Launcher Activity :
analytics = GoogleAnalytics.getInstance(MainDrawerActivity.this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("UA-XXXXXX-X"); // Replace with actual tracker/property Id tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
My project has several gradle files. I insert them all here:

Here is my gradle file as well as my Android manifest: build.gradle : (for my project: xxx ...)
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.3'
build.gradle : (for my module: application)
android { compileSdkVersion 22 buildToolsVersion "22.0.0" defaultConfig { applicationId "xxx.xxx.xxx" minSdkVersion 16 targetSdkVersion 22 versionCode 58 versionName "2.0.13" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { encoding "UTF-8" sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } lintOptions { abortOnError false } }
build.gradle for module: circleImageView (this is a library project) apply the plugin: 'com.android.library'
android { compileSdkVersion 22 buildToolsVersion "22.0.0" defaultConfig { minSdkVersion 11 targetSdkVersion 19 versionCode 60 versionName "2.0.14" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } }
The beginning of my manifest :
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xxx.xxxx.xxxxxxxx" android:installLocation="internalOnly" android:versionCode="58" android:versionName="2.0.13" > <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
Another point to note is prior to version “1.0”, I was in Eclipse, but this is the first time I'm in Android Studio, but I used the gradle Method to add Google Analytics to my account.
android android-manifest build.gradle google-analytics android-version
user1406716
source share