sitefinitysteve / nativescript-google-analytics

Apache License 2.0
23 stars 14 forks source link

Error when building on Android #2

Closed guillaume-roy closed 8 years ago

guillaume-roy commented 8 years ago

When i try to tns build android, i get the following error :

Could not find com.google.android.gms:play-services-analytics:8.4.0

I followed the Google instructions but if i see the include.gradle including in your package, i notice two differences :

I have configured, downloaded and saved the google-services.json in app/App_Resources/Android.

sitefinitysteve commented 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?

guillaume-roy commented 8 years ago

According to your answer, i can resolved my issue.

I had to :

2016-04-26_16h57_23

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.

2016-04-26_17h55_25

sitefinitysteve commented 8 years ago

When do you recieve those console errors? ...startup, or doing anything specific?

guillaume-roy commented 8 years ago

Here the steps before i get those errors :

Thanks for your help :+1:

sitefinitysteve commented 8 years ago

k thx, I'll try to open a ticket on the Android Repo to see whats up

sitefinitysteve commented 8 years ago

Closed per @guillaume-roy