sitefinitysteve / nativescript-google-analytics

Apache License 2.0
23 stars 14 forks source link

Error: fontVariationSettings and ttcIndex #48

Open n4lexeev opened 5 years ago

n4lexeev commented 5 years ago

"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.

BUILD FAILED in 3s

hosikiti commented 5 years ago

@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"
hosikiti commented 5 years ago

@Nurgunkalol Fixed version is here.

https://github.com/sovation/nativescript-google-analytics