nativescript-google-analytics icon indicating copy to clipboard operation
nativescript-google-analytics copied to clipboard

Another error on Nativescript 4+ with plugin 0.4.3 version

Open kalininskiy opened this issue 7 years ago • 2 comments

Another error after update plugin to 0.4.3 version

Error is: Failed to build plugin nativescript-google-analytics :
Error: Command gradlew.bat failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':releaseCompileClasspath'.
> Could not find runtime.jar (android.arch.lifecycle:runtime:1.0.0).
  Searched in the following locations:
      https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.0/runtime-1.0.0.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s

kalininskiy avatar May 30 '18 05:05 kalininskiy

same problem

n4lexeev avatar May 30 '18 06:05 n4lexeev

It looks like this is a very widespread issue across a lot of different frameworks and plugins. NativeScript seems to have already fixed it for our beloveth framework though: https://github.com/NativeScript/android-runtime/pull/1070 (the trick is to move jcenter() to the end of the list of repos.

I think you can try to upgrade tns-android to get the fix: tns platform add android@next

UPDATE: the fix is part of tns-android 4.1.3, so no need to use next anymore.

EddyVerbruggen avatar Jun 13 '18 18:06 EddyVerbruggen