nativescript-google-analytics
nativescript-google-analytics copied to clipboard
Another error on Nativescript 4+ with plugin 0.4.3 version
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
same problem
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.