with Shape File downloaded from http://download.geofabrik.de/asia/pakistan.html
04-29 17:00:09.588: W/System.err(30737): Native library load failed.
04-29 17:00:09.588: W/System.err(30737): java.lang.UnsatisfiedLinkError: Couldn't load ogrjni: findLibrary returned null
04-29 17:00:09.589: D/AndroidRuntime(30737): Shutting down VM
04-29 17:00:09.630: E/AndroidRuntime(30737): FATAL EXCEPTION: main
04-29 17:00:09.630: E/AndroidRuntime(30737): java.lang.ExceptionInInitializerError
04-29 17:00:09.630: E/AndroidRuntime(30737): at com.example.nutiteqmapdemo.MainActivity.loadEsriShapeFile(MainActivity.java:704)
04-29 17:00:09.630: E/AndroidRuntime(30737): at com.example.nutiteqmapdemo.MainActivity.onCreate(MainActivity.java:132)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.Activity.performCreate(Activity.java:5020)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2155)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2218)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.ActivityThread.access$600(ActivityThread.java:149)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1304)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.os.Handler.dispatchMessage(Handler.java:99)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.os.Looper.loop(Looper.java:153)
04-29 17:00:09.630: E/AndroidRuntime(30737): at android.app.ActivityThread.main(ActivityThread.java:5026)
04-29 17:00:09.630: E/AndroidRuntime(30737): at java.lang.reflect.Method.invokeNative(Native Method)
04-29 17:00:09.630: E/AndroidRuntime(30737): at java.lang.reflect.Method.invoke(Method.java:511)
04-29 17:00:09.630: E/AndroidRuntime(30737): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
04-29 17:00:09.630: E/AndroidRuntime(30737): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
04-29 17:00:09.630: E/AndroidRuntime(30737): at dalvik.system.NativeStart.main(Native Method)
04-29 17:00:09.630: E/AndroidRuntime(30737): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: org.gdal.ogr.ogrJNI.RegisterAll:()V
04-29 17:00:09.630: E/AndroidRuntime(30737): at org.gdal.ogr.ogrJNI.RegisterAll(Native Method)
04-29 17:00:09.630: E/AndroidRuntime(30737): at org.gdal.ogr.ogr.RegisterAll(ogr.java:115)
04-29 17:00:09.630: E/AndroidRuntime(30737): at com.nutiteq.datasources.vector.OGRVectorDataSource.<clinit>(OGRVectorDataSource.java:39)
04-29 17:00:09.630: E/AndroidRuntime(30737): ... 16 more
Regards
Muhammad Babar
--
You received this message because you are subscribed to the Google Groups "Nutiteq-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nutiteq-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You need native libraries also in your project.
See https://github.com/nutiteq/hellomap3d/wiki/Get-advancedmap3d-to-start - copy all files and directories from extlibs to libs.
I have already did this. Does i need to add all of them to build path? or copy paste in lib folder is enough?
tasks.create(name: 'libs', type: Copy) {
dependsOn configurations.compile
from configurations.compile
include '*.jar'
into "build/exportedLibs"
}
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniFolders = new HashSet<File>()
pkgTask.jniFolders.add(new File(projectDir, 'libs'))
}
on my build.gradle and its work.
thanks.