android - Could not find class com.joanzapata.pdfview.PDFView -


i want open pdf in android using pdfview. https://github.com/joanzapata/android-pdfview

this layout code:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >  <com.joanzapata.pdfview.pdfview     android:id="@+id/infoinstalacion_fragment5_pdfview"     android:layout_width="match_parent"     android:layout_height="match_parent"/> </linearlayout> 

and java code. want open pdf in fragment.:

        @override public view oncreateview(layoutinflater inflater, viewgroup container,         bundle savedinstancestate) {     // todo auto-generated method stub     view view = inflater.inflate(r.layout.infoinstalacion_fragment5, container, false);     pdfview pdfview= (pdfview) view.findviewbyid(r.id.infoinstalacion_fragment5_pdfview);     view.findviewbyid(r.id.infoinstalacion_fragment5_web_view);     pdfview.fromasset("horarios.pdf")     .defaultpage(1)     .showminimap(false)     .enableswipe(true)     .load();         return view; } 

this error:

04-15 00:05:06.504: e/dalvikvm(16177): not find class 'com.joanzapata.pdfview.pdfview', referenced method com.kirolm.instalacionesdep.info.infoinstalacionfragment5.oncreateview

04-15 00:05:06.514: e/androidruntime(16177): android.view.inflateexception: binary xml file line #6: error inflating class com.joanzapata.pdfview.pdfview

and

04-15 00:05:06.514: e/androidruntime(16177): caused by: java.lang.classnotfoundexception: didn't find class "com.joanzapata.pdfview.pdfview" on path: dexpathlist[[zip file "/data/app/com.kirolm.instalacionesdep-1.apk"],nativelibrarydirectories=[/data/app-lib/com.kirolm.instalacionesdep-1, /vendor/lib, /system/lib]]

any ideas? thank!

solved!

add support library in eclipse. in android proyect.

thank!


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -