Why does jar library work in Eclipse but not Android Studio? -
i have jar library (specifically rajawali v0.9) works in eclipse when using , compiling project android studio gives ton of errors when trying compile. why , there way bypass lint on specific jar library?
edit
had remove manifest via gradle because of mismatch here logcat when try run app:
java.lang.unsatisfiedlinkerror: couldn't load bufferutil loader dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.pspdemocenter.graffitilwp-1.apk"],nativelibrarydirectories=[/data/app-lib/com.pspdemocenter.graffitilwp-1, /vendor/lib, /system/lib]]]: findlibrary returned null @ java.lang.runtime.loadlibrary(runtime.java:358) @ java.lang.system.loadlibrary(system.java:526) @ rajawali.util.bufferutil.<clinit>(bufferutil.java:16) @ rajawali.geometry3d.setvertices(geometry3d.java:506) @ rajawali.geometry3d.setvertices(geometry3d.java:494) @ rajawali.geometry3d.setdata(geometry3d.java:259) @ rajawali.baseobject3d.setdata(baseobject3d.java:177) @ rajawali.baseobject3d.setdata(baseobject3d.java:154) @ rajawali.baseobject3d.setdata(baseobject3d.java:171) @ rajawali.baseobject3d.<init>(baseobject3d.java:114) @ com.pspdemocenter.graffitilwp.myrenderer.loadserializedmesh(myrenderer.java:65) @ com.pspdemocenter.graffitilwp.myrenderer.initscene(myrenderer.java:119) @ rajawali.renderer.rajawalirenderer.onsurfacecreated(rajawalirenderer.java:362) @ android.opengl.glsurfaceview$glthread.guardedrun(glsurfaceview.java:1505) @ android.opengl.glsurfaceview$glthread.run(glsurfaceview.java:1244)
you can use jar library in android studio :-
step 1 : under app folder
should see libs
, if don't see it, create .
step 2 : drag & drop .jar file here
, may prompt "this file not belong project"
, click ok
button .
step 3 : should see jar file under libs folder, right click on jar file , select "add library", click ok prompt "create library"
step 4 : jar
has been added.
Comments
Post a Comment