rmaesrichina-hk-esridist

Map Viewer 3.2 Error on Android

Discussion created by rmaesrichina-hk-esridist Employee on Feb 25, 2019
Latest reply on Feb 27, 2019 by rmaesrichina-hk-esridist

Hello Everyone,

 

I have started using AppStudio and downloaded MapViewer 3.2 template. Without making changes, can upload the app to AppStudio Player and successfully use the app in my Android device. Then I have proceeded to local make to create an Android application and copied the app to my own Android phone. After installation, the app instantly closes. Therefore I opened Android Studio and checked for logcat. I see the following error:

 

2019-02-25 17:14:48.477 10618-10634/com.esri.app10379e244f2b4d73bc917f1e25be13c8 E/AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
Process: com.esri.app10379e244f2b4d73bc917f1e25be13c8, PID: 10618
java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.esri.app10379e244f2b4d73bc917f1e25be13c8-AdxZbXoYmvIvjZR7P5E-IQ==/lib/arm/libAppFrameworkWebViewLib.so"
at java.lang.Runtime.load0(Runtime.java:928)
at java.lang.System.load(System.java:1621)
at org.qtproject.qt5.android.QtNative$3.run(QtNative.java:217)
at org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87)
at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
at java.lang.Thread.run(Thread.java:764)
2019-02-25 17:14:48.494 10637-10637/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2019-02-25 17:14:48.495 10637-10637/? E/libpersona: scanKnoxPersonas
2019-02-25 17:14:48.495 10637-10637/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
2019-02-25 17:14:48.512 3657-3688/? E/PhoneWindow_APM :: isCalledPackage return false
2019-02-25 17:14:48.571 3271-3271/? E/audit: type=1400 audit(1551086088.554:2203): avc: denied { write } for pid=10637 comm="ng.android.lool" name="com.samsung.android.lool-P28Ah1gl-TYCDwlkP_W9iw==" dev="dm-1" ino=655402 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G930F_8.0.0_0011 audit_filtered
2019-02-25 17:14:48.878 5423-5565/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 1ms lastUpdatedAfter : 60103 ms mFlush_time_threasold : 2000 mCurrentSize : 567
2019-02-25 17:14:49.050 4862-5121/? E/PBSessionCacheImpl: sessionId[21384852879885345] not persisted.
2019-02-25 17:14:59.933 3657-4165/? E/Watchdog: !@Sync 9373 [2019-02-25 17:14:59.933]
2019-02-25 17:15:00.024 3657-3686/? E/memtrack: Couldn't load memtrack module

 

My configurations:

Qt 5.11.2

NDK r10e

Local make selected platform: ARMv7

 

On a side note, I can successfully deploy an apk using the Web Map template.

Outcomes