sitefinitysteve / nativescript-google-analytics

Apache License 2.0
23 stars 14 forks source link

Update gradle build #39

Closed piotrilski closed 6 years ago

piotrilski commented 6 years ago

The reason of this PR is the error I was getting when trying to build my app for android:

Failed to build plugin nativescript-google-analytics : 
Error: Command failed: ./gradlew -p /Users/piotrilski/workspace/beachyapp/client-nativescript/platforms/tempPlugin/nativescript_google_analytics assembleRelease -PcompileSdk=android-27 -PbuildToolsVersion=27.0.1 -PsupportVersion=26.0.0-alpha1

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/piotrilski/workspace/beachyapp/client-nativescript/platforms/tempPlugin/nativescript_google_analytics/build.gradle' line: 58

* What went wrong:
A problem occurred evaluating root project 'nativescript_google_analytics'.
> Could not find method classpath() for arguments [com.android.tools.build:gradle:2.1.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Changes:

ddfreiling commented 6 years ago

@sitefinitysteve remember to npm publish 😉

sitefinitysteve commented 6 years ago

Oh i haven't forgot, just didn't get a chance yesterday 😜 Give me a few, I'll do it today.

On Fri, Apr 20, 2018, 8:59 AM Daniel Freiling, notifications@github.com wrote:

@sitefinitysteve https://github.com/sitefinitysteve remember to npm publish 😉

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sitefinitysteve/nativescript-google-analytics/pull/39#issuecomment-383087928, or mute the thread https://github.com/notifications/unsubscribe-auth/ABeI6NWNb7925fgF0G1cTejo7g0KZICHks5tqdu5gaJpZM4TZgvV .

ddfreiling commented 6 years ago

No worries, just ran into this when I upgraded to TNS 4.0. Thanks for this awesome plugin btw.

sitefinitysteve commented 6 years ago

Published, GOOD LUCK GUYS! I'm trusting you on this, I can't update to 4.0 just yet ;)