Analytics
3.3K members online now
3.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google Analytics for Hyprid Mobile App

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi 

I am facing problem to add GA code on my android app,

 

The app is developed in WordPress and using JSON data we have converted the Android app.

 

Kindly help us to add GA analytics code in my App.

 

We are getting the following errors while running Cordova command.

 

 

c:\my\snackup>cordova run --device
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_74


BUILD FAILED

Total time: 5.73 secs
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find com.android.support:support-v4:23.0.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
file:/C:/Program Files (x86)/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
file:/C:/Program Files (x86)/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
Required by:
:android:unspecified > com.google.android.gmsSmiley Tonguelay-services-analytics:9.0.2 > com.google.android.gmsSmiley Tonguelay-services-basement:9.0.2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: Error code 1 for command: cmd with args: /s,/c,"c:\my\snackup\platforms\android\gradlew cdvBuildDebug -b c:\my\snackup\platforms\android\build.gradle -PcdvBuildArch=arm -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"

c:\my\snackup>