Fixed
Status Update
Comments
ad...@google.com <ad...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Please provide sample project to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project.
NOTE: Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
Please provide sample project to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project.
NOTE: Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
is...@gmail.com <is...@gmail.com> #4
Appliquer le logiciel samsung s8 au programmeur d'etat
ad...@google.com <ad...@google.com> #5
We are unable to reproduce this issue with sample shared in comment #3 . Please let us know if any additional steps are required to reproduce this issue with the sample.
Also share a bug report :
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
NOTE: Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
Also share a bug report :
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
NOTE: Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
ad...@google.com <ad...@google.com>
ki...@google.com <ki...@google.com>
cl...@google.com <cl...@google.com>
ca...@google.com <ca...@google.com> #7
This has been fixed and will be available in a future release.
pe...@gmail.com <pe...@gmail.com> #8
We are experiencing the same issue.
Device Nexus 5X - 8.1.0
artifacts:
androidx.appcompat:appcompat:1.1.0-alpha02
androidx.activity:activity:1.0.0-alpha04
Happens when inflating the main activity layout.
Stacktrace:
E/TypefaceCompatApi21Impl: java.lang.NoSuchMethodException
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:49)
at androidx.core.graphics.TypefaceCompat.create(TypefaceCompat.java:190)
at androidx.appcompat.widget.AppCompatTextView.setTypeface(AppCompatTextView.java:576)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:217)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:103)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:963)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:419)
at android.app.Activity.setContentView(Activity.java:2669)
Device Nexus 5X - 8.1.0
artifacts:
androidx.appcompat:appcompat:1.1.0-alpha02
androidx.activity:activity:1.0.0-alpha04
Happens when inflating the main activity layout.
Stacktrace:
E/TypefaceCompatApi21Impl: java.lang.NoSuchMethodException
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:49)
at androidx.core.graphics.TypefaceCompat.create(TypefaceCompat.java:190)
at androidx.appcompat.widget.AppCompatTextView.setTypeface(AppCompatTextView.java:576)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:217)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:103)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:963)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:419)
at android.app.Activity.setContentView(Activity.java:2669)
en...@gmail.com <en...@gmail.com> #9
I need these bugs closed we will continue to security issues
ar...@gmail.com <ar...@gmail.com> #10
Any workarounds?
fr...@gmail.com <fr...@gmail.com> #11
I'm also experiencing the issue with 8.0 API and higher in my app and would be glad to verify the fix or rest a designated workaround.
mo...@googlemail.com <mo...@googlemail.com> #12
Hope this helps you reproduce it. It occurs sparodicly
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:47)
at androidx.core.graphics.TypefaceCompat.findFromCache(TypefaceCompat.java:76)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:393)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:361)
at androidx.core.content.res.ResourcesCompat.getFont(ResourcesCompat.java:339)
at androidx.appcompat.widget.TintTypedArray.getFont(TintTypedArray.java:119)
at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:265)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:177)
at androidx.appcompat.widget.AppCompatAutoCompleteTextView.<init>(AppCompatAutoCompleteTextView.java:87)
at androidx.appcompat.widget.AppCompatAutoCompleteTextView.<init>(AppCompatAutoCompleteTextView.java:70)
at androidx.appcompat.app.AppCompatViewInflater.createAutoCompleteTextView(AppCompatViewInflater.java:223)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:138)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)
at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:189)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:47)
at androidx.core.graphics.TypefaceCompat.findFromCache(TypefaceCompat.java:76)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:393)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:361)
at androidx.core.content.res.ResourcesCompat.getFont(ResourcesCompat.java:339)
at androidx.appcompat.widget.TintTypedArray.getFont(TintTypedArray.java:119)
at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:265)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:177)
at androidx.appcompat.widget.AppCompatAutoCompleteTextView.<init>(AppCompatAutoCompleteTextView.java:87)
at androidx.appcompat.widget.AppCompatAutoCompleteTextView.<init>(AppCompatAutoCompleteTextView.java:70)
at androidx.appcompat.app.AppCompatViewInflater.createAutoCompleteTextView(AppCompatViewInflater.java:223)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:138)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)
at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:189)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
pa...@hiiker.co <pa...@hiiker.co> #13
I am also experiencing this, stack trace below:
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:49)
at androidx.core.graphics.TypefaceCompat.findFromCache(TypefaceCompat.java:76)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:393)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:361)
at androidx.core.content.res.ResourcesCompat.getFont(ResourcesCompat.java:339)
at androidx.appcompat.widget.TintTypedArray.getFont(TintTypedArray.java:119)
at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:358)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:200)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:103)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
at androidx.appcompat.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:182)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1267)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1317)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:470)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:141)
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:49)
at androidx.core.graphics.TypefaceCompat.findFromCache(TypefaceCompat.java:76)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:393)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:361)
at androidx.core.content.res.ResourcesCompat.getFont(ResourcesCompat.java:339)
at androidx.appcompat.widget.TintTypedArray.getFont(TintTypedArray.java:119)
at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:358)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:200)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:103)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
at androidx.appcompat.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:182)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1267)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1317)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:470)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:141)
bh...@gmail.com <bh...@gmail.com> #14
Is there any workaround for this issue at the moment?
ca...@google.com <ca...@google.com> #15
This has already been solved by https://android-review.googlesource.com/c/platform/frameworks/support/+/878553/ and is going to be available in a future release. Currently the exception is thrown but it doesn't affect the app (the typeface still loads correctly), everything should still work fine.
pl...@gmail.com <pl...@gmail.com> #16
Thank you. I'll look out for the next release.
pl...@gmail.com <pl...@gmail.com> #17
>but it doesn't affect the app (the typeface still loads correctly), everything should still work fine.
It does affect slightly in the meantime, unable to apply fontweights.
Thank you so much for the upcoming fix
It does affect slightly in the meantime, unable to apply fontweights.
Thank you so much for the upcoming fix
vi...@gmail.com <vi...@gmail.com> #18
When release with this fix?
za...@gmail.com <za...@gmail.com> #19
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:49)
at androidx.core.graphics.TypefaceCompat.create(TypefaceCompat.java:190)
at androidx.appcompat.widget.AppCompatTextView.setTypeface(AppCompatTextView.java:576)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:217)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:103)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
at androidx.appcompat.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:182)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1267)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1317)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:779)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:737)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:870)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:470)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:141)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:303)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:284)
at com.softlife.fitness.thirtydaysworkoutplan.activity.ExercisesListActivity.onCreate(ExercisesListActivity.java:38)
at android.app.Activity.performCreate(Activity.java:7235)
at android.app.Activity.performCreate(Activity.java:7226)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2953)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3078)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:187)
at android.app.ActivityThread.main(ActivityThread.java:7025)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:49)
at androidx.core.graphics.TypefaceCompat.create(TypefaceCompat.java:190)
at androidx.appcompat.widget.AppCompatTextView.setTypeface(AppCompatTextView.java:576)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:217)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:103)
at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
at androidx.appcompat.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:182)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1267)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1317)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:779)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:737)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:870)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:470)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:141)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:303)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:284)
at com.softlife.fitness.thirtydaysworkoutplan.activity.ExercisesListActivity.onCreate(ExercisesListActivity.java:38)
at android.app.Activity.performCreate(Activity.java:7235)
at android.app.Activity.performCreate(Activity.java:7226)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2953)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3078)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:187)
at android.app.ActivityThread.main(ActivityThread.java:7025)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
ya...@gmail.com <ya...@gmail.com> #20
May I know when release with this fix?
ig...@gmail.com <ig...@gmail.com> #21
It's annoying and wrecks my debugging logs with tons of noise, what's with the fix?
ab...@gmail.com <ab...@gmail.com> #22
Its every Where,How to fix it??
sk...@googlemail.com <sk...@googlemail.com> #23
Go back to Version :
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
an...@gmail.com <an...@gmail.com> #24
Or upgrade to androidx.appcompat:appcompat:1.1.0-alpha03
This seems to work for me.
From: buganizer-system@google.com <buganizer-system@google.com>
Sent: Monday, 18 March, 2019 15:09
To: b-system+614677527@google.com
Cc: androtuner@gmail.com
Subject: Re: Issue 124274577 : TypefaceCompatApi21Impl: java.lang.NoSuchMethodException
Replying to this email means your email address will be shared with the team that works on this product.
https://issuetracker.google.com/issues/124274577
Changed
<mailto:sk...@googlemail.com> sk...@googlemail.com added comment #23 <https://issuetracker.google.com/issues/124274577#comment23 > :
Go back to Version :
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
_______________________________
Reference Info: 124274577 TypefaceCompatApi21Impl: java.lang.NoSuchMethodException
component: Android Public Tracker > App Development > AndroidX (Support Library) > Core
status: Fixed
reporter: in...@gmail.com <mailto:in...@gmail.com>
assignee: ca...@google.com <mailto:ca...@google.com>
cc: an...@google.com <mailto:an...@google.com> , in...@gmail.com <mailto:in...@gmail.com> , si...@google.com <mailto:si...@google.com>
type: Bug P4 S4
blocked by: 122913605 <https://issuetracker.google.com/issues/122913605 >
hotlist: [AOSP] assigned <https://issuetracker.google.com/hotlists/468531 >
Generated by Google IssueTracker notification system
You're receiving this email because you are subscribed to updates on Google IssueTracker issue 124274577 <https://issuetracker.google.com/issues/124274577 > where you have the role: starred.
This seems to work for me.
From: buganizer-system@google.com <buganizer-system@google.com>
Sent: Monday, 18 March, 2019 15:09
To: b-system+614677527@google.com
Cc: androtuner@gmail.com
Subject: Re:
Replying to this email means your email address will be shared with the team that works on this product.
Changed
<mailto:sk...@googlemail.com> sk...@googlemail.com added
Go back to Version :
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
_______________________________
Reference Info: 124274577 TypefaceCompatApi21Impl: java.lang.NoSuchMethodException
component: Android Public Tracker > App Development > AndroidX (Support Library) > Core
status: Fixed
reporter: in...@gmail.com <mailto:in...@gmail.com>
assignee: ca...@google.com <mailto:ca...@google.com>
cc: an...@google.com <mailto:an...@google.com> , in...@gmail.com <mailto:in...@gmail.com> , si...@google.com <mailto:si...@google.com>
type: Bug P4 S4
blocked by: 122913605 <
hotlist: [AOSP] assigned <
Generated by Google IssueTracker notification system
You're receiving this email because you are subscribed to updates on Google IssueTracker
wi...@gmail.com <wi...@gmail.com> #25
upgrade these implimentation, it worked for me
implementation 'androidx.appcompat:appcompat:1.1.0-alpha03'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.appcompat:appcompat:1.1.0-alpha03'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
Description
Version used: 1.1.0-alpha2
Theme used: Theme.AppCompat.Light.NoActionBar
Devices/Android versions reproduced on: Pixel 1 / Android 9 (Build number PQ1A.190105.004)
new TextView(getContext()).setTypeface(ResourcesCompat.getFont(getContext(), R.font.test_font));
___________________________________________________________
TypefaceCompatApi21Impl: java.lang.NoSuchMethodException
java.lang.NoSuchMethodException: addFontWeightStyle [class java.lang.String, int, boolean]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getMethod(Class.java:1690)
at androidx.core.graphics.TypefaceCompatApi21Impl.<clinit>(TypefaceCompatApi21Impl.java:74)
at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:47)
at androidx.core.graphics.TypefaceCompat.findFromCache(TypefaceCompat.java:76)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:393)
at androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:361)
at androidx.core.content.res.ResourcesCompat.getFont(ResourcesCompat.java:230)