Android Question Error when I use RuntimePermissions

Discussion in 'Android Questions' started by DactilPlus, Aug 6, 2018.

  1. DactilPlus

    DactilPlus Member Licensed User

    I have a app, running one year ago, but now I put targetSDKversion to 26.

    Now I need get permision for location (access_fine_location) with RuntimePermissions, but when I use this library it gives me this error with a lot of gmaps functions.
    objects Latlng, camperaposition ...


    Code:
    B4A Versión: 8.30
    Parseando código.    (
    0.16s)
    Compilando código    (
    0.33s)
    Compilado código de diseños    (
    0.01s)
    Organizando librerías.    (
    0.00s)
    Generando el fichero R.    (
    0.64s)
    Compilando el código del motor de depuración.    (
    3.49s)
    Compilando el código Java generado.    Error
    B4A line: 
    1842
    points_gr.Add(aaa_gr)
    javac 
    1.8.0_73
    src\teamTrackplus\app\main.java:
    14596: error: cannot access LatLng
    _points_gr.Add((Object)(_aaa_gr.getObject()));
                                             ^
      class 
    file for com.google.android.gms.maps.model.LatLng not found
    See the images please.
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    BillMeyer and Peter Simpson like this.
  3. DactilPlus

    DactilPlus Member Licensed User

    I also tried. But it gives me Error.
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    DactilPlus likes this.
  5. DactilPlus

    DactilPlus Member Licensed User

    I did and it dont works.

    Where can be the error ?
     

    Attached Files:

  6. DonManfred

    DonManfred Expert Licensed User

    probably in the fact that you are reusing an old sdk installation.
    See my answer in Post #2
     
    DactilPlus likes this.
  7. DactilPlus

    DactilPlus Member Licensed User

    Hi DonMafred, I updated all I saw. But I didnt update the SDK, you was right. Now the project based on Google Maps tutorial works. I will tray in the real proyect.

    Thanks a lot.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice