Comments (7)
I created a new project with the targetSdk
set to 26
and support libraries using the latest 26.0.+
and the library is working correctly. Can you please paste the dependencies
section of your app module's build.gradle
?
The PathParser
looks untouched in the latest support library. Make sure to include com.android.support:support-vector-drawable
dependency (which is already included in appcompat).
from animatedsvgview.
I've added the support-vector-drawable dependency and now I'm having classNotFoundException on another class ( ExposedPathParser). Here comes the logcat
java.lang.NoClassDefFoundError: android.support.graphics.drawable.ExposedPathParser
at com.jaredrummler.android.widget.AnimatedSvgView.rebuildGlyphData(AnimatedSvgView.java:267)
at com.jaredrummler.android.widget.AnimatedSvgView.onSizeChanged(AnimatedSvgView.java:169)
at android.view.View.sizeChange(View.java:16748)
at android.view.View.setFrame(View.java:16710)
at android.view.View.layout(View.java:16627)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16630)
at android.view.ViewGroup.layout(ViewGroup.java:5437)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16630)
at android.view.ViewGroup.layout(ViewGroup.java:5437)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16630)
at android.view.ViewGroup.layout(ViewGroup.java:5437)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16630)
at android.view.ViewGroup.layout(ViewGroup.java:5437)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16630)
at android.view.ViewGroup.layout(ViewGroup.java:5437)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
at android.view.View.layout(View.java:16630)
at android.view.ViewGroup.layout(ViewGroup.java:5437)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
from animatedsvgview.
Moreover, this is the dependencies of my app module, having the v26.0.+ of support library.
compile dep.appcompat
compile dep.design
compile dep.recyclerview
compile dep.cardview
compile dep.animatedSvgView
compile dep.animatedVectorDrawable
compile dep.support_vector_drawable
compile dep.palette
compile dep.butterknife_core
annotationProcessor dep.butterknife_compiler
compile dep.pidgets
compile dep.viewpager_transformer
compile dep.picasso
compile dep.onboarding
compile dep.zxing_embedded
compile dep.retrofit
compile dep.retrofit_gson
compile (dep.crashlytics) { transitive = true; }
compile (dep.crashlytics_answers) { transitive = true ; }
compile dep.apache_commons_lang3
compile dep.rootbeer
compile dep.onesignal
compile dep.play_services_gcm
compile dep.play_services_location
compile dep.custom_tabs
compile dep.support_v4
from animatedsvgview.
gradle: 3.0.0-beta4
Same issue with :
api 'com.android.support:appcompat-v7:27.0.2'
api 'com.android.support:support-vector-drawable:27.0.2'
Works with :
api 'com.android.support:appcompat-v7:25.4.0'
api 'com.android.support:support-vector-drawable:25.4.0'
from animatedsvgview.
I was able to recreate the issue. Will work on it as soon as I get some time.
Just from quickly looking, I think the issue is that PathParser
was moved from android.support.graphics.drawable
to android.support.v4.graphics
.
from animatedsvgview.
Update to 1.0.5 should fix this.
from animatedsvgview.
I have same problem after updating from 25 to 26 SDK level ,
and i also added this dependency 'com.android.support:support-vector-drawable:26.1.0'.
But its not working in my project ...
can u help me out ..
Error Message :
error: cannot access PathParser
class file for android.support.graphics.drawable.PathParser not found
from animatedsvgview.
Related Issues (18)
- Please add support for SMIL animations HOT 1
- can play svg path programming not by predefined file๏ผ HOT 1
- R stands for what? HOT 1
- How do I animate SVG on click of that image? HOT 1
- Add to readme
- How did you convert an image path into string array HOT 1
- Only 5 paths? HOT 4
- Dont work with this image HOT 1
- tools:replace="android:appComponentFactory" android:appComponentFactory="android.support.v4.app.CoreComponentFactory" HOT 6
- Could you consider adding a way to reference SVG resources directly later? HOT 1
- svg path for alphabet
- Height and Width in AnimatedSvgView
- How do I set the height and width? HOT 3
- How to convert a png to the your format svg path array? HOT 2
- animated
- AnimatedSvgView not display center on the screen HOT 12
- Can't get the 1.0.1 version from maven HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animatedsvgview.