nativescript-google-analytics
nativescript-google-analytics copied to clipboard
Error: fontVariationSettings and ttcIndex
"tns-ios": { "version": "4.2.0" }, "tns-android": { "version": "4.2.0" }
Unable to apply changes on device: emulator-5554. Error is: Failed to build plugin nativescript-google-analytics :
Error: Command ./gradlew failed with exit code 1 Error output:
/Users/nalexeev/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/fdc1653b7147869a0140773583eb43f4/res/values/values.xml:133:5-70:AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/nalexeev/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/fdc1653b7147869a0140773583eb43f4/res/values/values.xml:133:5-70: AAPT: error: resource android:attr/ttcIndex not found.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':verifyReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 3s
@Nurgunkalol Hello. I had a similar situation. The following release is a root cause of this issue.
https://developers.google.com/android/guides/releases
In my case, I needed to fork this repository and change following lines to use the old version of Google Play Services.
Before: https://github.com/sitefinitysteve/nativescript-google-analytics/blob/cc486f90d31222297fa8952ccc6c147a229b48ed/src/platforms/android/include.gradle#L11
After:
implementation "com.google.android.gms:play-services-analytics:16.0.0"
@Nurgunkalol Fixed version is here.
https://github.com/sovation/nativescript-google-analytics