Select to view content in your preferred language

offline analysis

3364
2
05-17-2016 06:58 AM
sanjeevsinha
Deactivated User

Hi,

I am trying to build the android runtime OfflineAnalysis. I have copied the code from sample and also setup the jniLibs with required file. I have a raster data whose extension is .tif . The application compiling fine but when running in emulator (target 23 "Android 6") the application is loading the raster after that when i am selecting a radio button "Line of sight" that time the application is getting crash. After looking at logcat i came to know that the error is thrown by librs.main.so

Here is the full error message i am getting:  java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_Z6lengthDv2_f" referenced by "/data/app/india.esri.offlineanalysis-1/lib/x86/librs.main.so"...

I am unable to solve this. can any one please help me on this?

2 Replies
AlexanderNohe1
Honored Contributor

Does this work when you are in a connected environment?

Also, have you included RenderScript within your application:

RenderScript | Android Developers

android {
    compileSdkVersion
23
    buildToolsVersion
"23.0.3"

    defaultConfig
{
        minSdkVersion
8
        targetSdkVersion
19

        renderscriptTargetApi
18
        renderscriptSupportModeEnabled
true

   
}
}

0 Kudos
sanjeevsinha
Deactivated User

Thanks Alexander,

I have already solved the issue. The libs folder was not getting automatically reference in Antroid Studio so configure the path in gradle file. But still i am facing one issue. If I am running LineOfSight first and then ViewShed it is working fine. If i am running ViewShed first and then LineOfSight then app is getting crash when trying to run the LineOfSight.

0 Kudos