error: resource android:attr/fontVariationSettings not found.error: resource android:attr/ttcIndex
解决方案:
将
targetSdkVersion和
compileSdkVersion 改为 28
改完同步之后可能会出现有红色波浪线,这是因为版本不一样导致的
将版本号改为
28.0.0-rc02
如果还报有以下的错误,底下是答案和链接:
Error:
Attribute [email protected] value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:15:2-101:16 to override.