Code Monkey home page Code Monkey logo

Comments (7)

jaredrummler avatar jaredrummler commented on June 26, 2024

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.

 avatar commented on June 26, 2024

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.

 avatar commented on June 26, 2024

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.

williamdes avatar williamdes commented on June 26, 2024

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.

jaredrummler avatar jaredrummler commented on June 26, 2024

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.

jaredrummler avatar jaredrummler commented on June 26, 2024

Update to 1.0.5 should fix this.

from animatedsvgview.

kshegde009 avatar kshegde009 commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.