Closed guillaume-roy closed 8 years ago
Works here, demo app runs fine, I think you're just missing the lib itself... I'm not really sure why we need that apply plugin, it just "works" without it... any attempt by me to add it just ended up in crashing.
From stackoverflow:
Open the Android Studio SDK manager, make sure all of your build tools are up to date. Then make sure your Google Play Services and Google Repository packages are up to date. In the Android Studio sdk manager, you'll find these under the "SDK Tools" tab. If you are using the standalone sdk manager, you would scroll down to the "Extras" section at the bottom and update them there
Can you let me know if this resolves it so I can update the README and close the issue?
According to your answer, i can resolved my issue.
I had to :
However i still have some errors. They appear only in the JS Console and nothing in the app. But the events are well sent and received to GA.
When do you recieve those console errors? ...startup, or doing anything specific?
Here the steps before i get those errors :
tns livesync android --watch
(i get error when i run the app too)googleAnalytics.initalize
in the application.onLaunch
in app.ts
Thanks for your help :+1:
k thx, I'll try to open a ticket on the Android Repo to see whats up
Closed per @guillaume-roy
When i try to
tns build android
, i get the following error :I followed the Google instructions but if i see the
include.gradle
including in your package, i notice two differences :com.google.gms:google-services:2.0.0-alpha6
or your added thebeta6
apply plugin: 'com.google.gms.google-services'
and i don't see this line anywhereI have configured, downloaded and saved the
google-services.json
inapp/App_Resources/Android
.