addFontWeightStyle NoSuchMethodException on TextView
The issue has been reported to the Android team and seems to be a fix in place for a future release:
As per comment #25 below version works
implementation 'androidx.appcompat:appcompat:1.1.0-alpha03'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
For some research i found the solution might me helpful, actually i am using alpha dependency which is not stable so i downgrade the lib version of AndroidX
I am using this dependency
implementation 'androidx.core:core-ktx:1.1.0-alpha04'
implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'
you should use this instead of
implementation 'androidx.core:core-ktx:1.0.1'
implementation 'androidx.appcompat:appcompat:1.0.2'