integration - Android Add PinIt Button using Pinterest Jar NoClassDefFoundError -


i trying add pinit button android app. have downloaded sdk , copied pinit-sdk-1.0.jar project/libs folder. i'm able make necessary pinitbutton import code. whatever reason, xml isn't finding button widget, , tried add using java code:

linearlayout ll = (linearlayout)findviewbyid(r.id.pinterest_layout);         pinitbutton pinit = new pinitbutton(this);         ll.addview(pinit); 

i know correct way add using code because tested adding generic button first. run project then, , crashes on line set pinitbutton. error logcat spat @ me:

07-22 01:19:52.160: e/androidruntime(32367): java.lang.noclassdeffounderror: com.pinterest.pinit.pinitbutton 

i believe i'm understand telling me, else should attempting create pinit button? great. thank you!

it @kai helped me figure out problem. needed check libraries. did going project --> properties --> java build path --> order , export tab, checking library , clicking ok. problem solved!


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -