I tried this code but it doesn't work
Dim mapAty As MapView
' Init MapView use lib [B]OSMDroid_3_0_8[/B]
mapAtyrau.Initialize("map")
Activity.AddView(mapAtyrau, 2%x, 30%y, 96%x, 59%y)
' Set Path OSM file
Dim mapFile As String
mapFile = File.Combine(File.DirInternal, "mapATY.osm")
If File.Exists(File.DirInternal, "mapATY.osm") Then
mapAtyrau.SetTileSource(mapFile)
End If
error
B4A Version: 11.80
Parsing code. (0.09s)
Java Version: 11
Building folders structure. (0.01s)
Compiling code. (0.12s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.07s)
Linking resources (0.78s)
Compiling generated Java code. (1.90s)
Finding libraries that need to be dexed. (0.00s)
Dex code (1.58s)
Dex merge Error
Error in D:\B4X\Android\tools\..\extras\b4a_local\unpacked-osmdroid_3_0_8-63526302840000\dex_v1\osmdroid_3_0_8.zip:classes.dex:
Type org.slf4j.ILoggerFactory is defined multiple times: D:\B4X\Android\tools\..\extras\b4a_local\unpacked-osmdroid_3_0_8-63526302840000\dex_v1\osmdroid_3_0_8.zip:classes.dex, D:\B4X\Android\tools\..\extras\b4a_local\unpacked-moqueutte-63614376060000\dex_v1\moqueutte.zip:classes.dex
Compilation failed