Hi All,
A problem.
Existing App updated for Runtime Permissions.
Install App OK.
Attempt to open App and it crashes, it does not report line numbers etc.
This occurs in release and debug modes. Also the same result if a fresh install or installing over existing [working] App.
The App installs OK a Galaxy Note 3 [Android 5] and a LG V20 [Android 8].
The problem occurs on a Galaxy Tab A [Android 9].
I suspect a timing issue due to the Tab A running faster but I really have no idea.
I am working my way through using Log() to narrow down where exactly it is crashing.
Can someone please tell what the crash info from the Log means. Crash info and code below.
I know this isn't much to go on but if someone can translate the LOG to SIMPLE i would appreciate it.
Regards Roger
A problem.
Existing App updated for Runtime Permissions.
Install App OK.
Attempt to open App and it crashes, it does not report line numbers etc.
This occurs in release and debug modes. Also the same result if a fresh install or installing over existing [working] App.
The App installs OK a Galaxy Note 3 [Android 5] and a LG V20 [Android 8].
The problem occurs on a Galaxy Tab A [Android 9].
I suspect a timing issue due to the Tab A running faster but I really have no idea.
I am working my way through using Log() to narrow down where exactly it is crashing.
Can someone please tell what the crash info from the Log means. Crash info and code below.
I know this isn't much to go on but if someone can translate the LOG to SIMPLE i would appreciate it.
Regards Roger
B4X:
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
End Sub
Sub mFragment_Ready
Log(" Start of mFragment_Ready")
gmap = mFragment.GetMap
Log("gmap")
' '*****Added as part of Map upgrade 10 Aug 19
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
'**** Requests permission but crashes before user responds
gmap.MyLocationEnabled = Result
If gmap.IsInitialized = False Then
ToastMessageShow("Error initializing map.", True)
Else
' Do stuff
Then
' More stuff
Log(" End of mFragment_Ready Sub")
End Sub
Logger connected to: samsung SM-T510
--------- beginning of main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Start of mFragment_Ready
gmap
** Activity (main) Pause, UserClosed = false **
No wakelock.
--------- beginning of system
--------- beginning of crash
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion;
at ce.bcom.google.android.gms.dynamite_mapsdynamite@19275078@19.2.75 (100304-269183835):3)
at cb.acom.google.android.gms.dynamite_mapsdynamite@19275078@19.2.75 (100304-269183835):3)
at cd.acom.google.android.gms.dynamite_mapsdynamite@19275078@19.2.75 (100304-269183835):14)
at com.google.maps.api.android.lib6.drd.aj.acom.google.android.gms.dynamite_mapsdynamite@19275078@19.2.75 (100304-269183835):4)
at bf.acom.google.android.gms.dynamite_mapsdynamite@19275078@19.2.75 (100304-269183835):22)
at bf.runcom.google.android.gms.dynamite_mapsdynamite@19275078@19.2.75 (100304-269183835):8)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.ProtocolVersion" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000029/MapsDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000029/MapsDynamite.apk!/lib/armeabi-v7a, /data/user_de/0/com.google.android.gms/app_chimera/m/00000029/MapsDynamite.apk!/lib/armeabi, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at ad.loadClasscom.google.android.gms.dynamite_dynamiteloader@19275078@19.2.75 (100304-269183835):4)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 6 more