Android Question SOLVED Old app compile error.

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody
I have just reinstalled the whole B4A package, following instructions. I have this sibiline error.

1654846116699.png


Code involved:
Sub positionimage(latitude As String,longitude As String)
    lat=latitude
    lng=longitude
    Dim latn As Double=lat
    Dim lngn As Double=lng
    If latn=0 And lngn=0 Then
        Return'ToastMessageShow(Starter.loc.Localize("Remote GPS is not ready"),True)
    End If
    
'    Dim Icon As BitmapDrawable
'    Icon.Initialize(LoadBitmap(File.DirAssets, "my_icon.png"))
If m1.IsInitialized Then    m1.Remove
        
    gmap = mapfragment1.GetMap
    m1 = gmap.AddMarker(latitude,longitude,"")
    gmap.MyLocationEnabled=True
    Dim CameraPosition1 As CameraPosition
    CameraPosition1.Initialize(lat,lng,zoomb)
    gmap.AnimateCamera(CameraPosition1)
End Sub

I have installed all recent versions of SDK, Java, Tools and B4A itself, but before I deleted all. Of course I'm missing something...

Thank you in advance
Best regards!
Mauro
 

josejad

Expert
Licensed User
Longtime User
what error do you get if you run it in debug mode or even Release, instead of Release(obfustated)?
 
Upvote 0
Top