Android Question resource error in manifest while generation

Discussion in 'Android Questions' started by leitor79, Aug 7, 2019.

  1. leitor79

    leitor79 Active Member Licensed User

    Hi,

    I've created a new VM, and today, while I'm generating the project, I get this error:

    Code:
    B4A Version: 9.30
    Java Version: 
    8
    Parsing code.    (
    0.06s)
    Building folders structure.    (
    0.05s)
    Running custom action.    (
    8.00s)
    Compiling code.    (
    0.13s)
    Compiling layouts code.    (
    0.01s)
    Organizing libraries.    (
    0.00s)
        (AndroidX SDK)
    Generating R 
    file.    Error
    AndroidManifest.xml:
    29: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
    I don't know if the reported line matches the "real" one in my manifest file, but

    Code:
    AddApplicationText(
    <meta-data <-----------------THIS 
    IS LINE 29
      android:name=
    "com.google.android.geo.API_KEY"
      android:value=
    "KEEEEEEEEEEEEEYYYYYYYYYYYYYYYYY"/>
    )
    Regards,
     
  2. leitor79

    leitor79 Active Member Licensed User

    Fixed.
    I've removed the following line, due to a prior "suggestion":

    Code:
    #AdditionalRes: D:\Android\SDK\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
    I've restored it and now the error is gone.

    Regards,
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    It is not required. Have you added this line:
    Code:
    #AdditionalJar: com.google.android.gms:play-services-maps
    ?
     
  4. leitor79

    leitor79 Active Member Licensed User

    Yes; my line solved the compilation problem but I was getting another one at runtime; I've replaced that line with yours and now It's working ok.

    Thank you very much!
     
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