AAPT: error: resource android:attr/fontVariationSettings not found and resource android:attr/ttcIndex not found

China☆狼群 提交于 2019-11-27 09:48:21

The error is:

AAPT: error: resource android:attr/fontVariationSettings not found.
AAPT: error: resource android:attr/ttcIndex not found

Change the compileSdkVersion to:

compileSdkVersion 28

fontVariationSettings and ttcIndex were added in api level 28.

If you have stumbled upon this problem due to getting this error recently out of nowhere in react native- this is due to the latest BREAKING CHANGE in Google Play service and Firebase. Specially you will have problem with the packages which are dependent on -

com.google.android.gms:play-services-gcm

Check this thread first -

https://github.com/facebook/react-native/issues/25293

And solution would mostly be like this -

https://github.com/facebook/react-native/issues/25293#issuecomment-503045776

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!