You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
With the release of Android 12, a bunch of non-SDK interfaces were removed (see this).
And this library uses reflection to call this non-SDK method with is now blocked in Android 12: Landroid/util/PathParser;->createPathFromPathData(Ljava/lang/String;)Landroid/graphics/Path;
Trying to call RichPathView.setVectorDrawable thus causes this exception to be thrown:
W/ Accessing hidden method Landroid/util/PathParser;->createPathFromPathData(Ljava/lang/String;)Landroid/graphics/Path; (max-target-r, reflection, denied)
W/System.err: java.lang.NoSuchMethodException: android.util.PathParser.createPathFromPathData [class java.lang.String]
at java.lang.Class.getMethod(Class.java:2103)
at java.lang.Class.getDeclaredMethod(Class.java:2081)
at com.richpath.pathparser.PathParserCompatApi21.getCreatePathFromPathDataMethod(PathParserCompatApi21.java:37)
at com.richpath.pathparser.PathParserCompatApi21.createPathFromPathData(PathParserCompatApi21.java:21)
at com.richpath.pathparser.PathParser.createPathFromPathData(PathParser.java:18)
at com.richpath.RichPath.<init>(RichPath.java:71)
at com.richpath.util.XmlParser.parsePathElement(XmlParser.java:87)
at com.richpath.util.XmlParser.parseVector(XmlParser.java:55)
at com.richpath.RichPathView.setVectorDrawable(RichPathView.java:84)
The text was updated successfully, but these errors were encountered:
On Tue, Aug 24, 2021, 11:00 AM Tom ***@***.***> wrote:
With the release of Android 12, a bunch of non-SDK interfaces were removed
(see this
<https://developer.android.com/about/versions/12/non-sdk-12#new-blocked>).
And this library uses reflection to call this non-SDK method with is now
blocked in Android 12:
Landroid/util/PathParser;->createPathFromPathData(Ljava/lang/String;)Landroid/graphics/Path;
Trying to call RichPathView.setVectorDrawable thus causes this exception
to be thrown:
W/ Accessing hidden method Landroid/util/PathParser;->createPathFromPathData(Ljava/lang/String;)Landroid/graphics/Path; (max-target-r, reflection, denied)
W/System.err: java.lang.NoSuchMethodException: android.util.PathParser.createPathFromPathData [class java.lang.String]
at java.lang.Class.getMethod(Class.java:2103)
at java.lang.Class.getDeclaredMethod(Class.java:2081)
at com.richpath.pathparser.PathParserCompatApi21.getCreatePathFromPathDataMethod(PathParserCompatApi21.java:37)
at com.richpath.pathparser.PathParserCompatApi21.createPathFromPathData(PathParserCompatApi21.java:21)
at com.richpath.pathparser.PathParser.createPathFromPathData(PathParser.java:18)
at com.richpath.RichPath.<init>(RichPath.java:71)
at com.richpath.util.XmlParser.parsePathElement(XmlParser.java:87)
at com.richpath.util.XmlParser.parseVector(XmlParser.java:55)
at com.richpath.RichPathView.setVectorDrawable(RichPathView.java:84)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#76>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBXOWB3IL2Q2JWOOMNE5TLT6NNR3ANCNFSM5CWLZEGQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
With the release of Android 12, a bunch of non-SDK interfaces were removed (see this).
And this library uses reflection to call this non-SDK method with is now blocked in Android 12:
Landroid/util/PathParser;->createPathFromPathData(Ljava/lang/String;)Landroid/graphics/Path;
Trying to call
RichPathView.setVectorDrawable
thus causes this exception to be thrown:The text was updated successfully, but these errors were encountered: