Android Question Google Map V2 and older Google Play Service

mkh_fx

Member
Licensed User
Longtime User
I have a big problem
In my application, I have been using the latest version of Google Map V2
But the application does not run on mobile phones that have an older version of Google Play Service
Is there any way to run the app without having to update it
For example, the latest version Google Play gets inside the app
I found a solution but the error below is displayed

B4X:
#AdditionalJar: com.google.android.gms:play-services-maps
    #AdditionalRes: C:\AndroidSDK\extras\google\google-play-services\libproject\google-play-services_lib\res, com.google.android.gms


B4X:
B4A Version: 7.30
Parsing code.    (0.05s)
Compiling code.    (0.19s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Generating R file.    Error
c:\androidsdk\extras\google\google-play-services\libproject\google-play-services_lib\res\values\base_attrs.xml:11: error: Attribute "buttonSize" already defined with incompatible format.
C:\Rahbord\Telexi\Telex30\Objects\bin\extra\res3\res\values\values.xml:47: Original attribute defined here.
c:\androidsdk\extras\google\google-play-services\libproject\google-play-services_lib\res\values\base_attrs.xml:16: error: Attribute "colorScheme" already defined with incompatible format.
C:\Rahbord\Telexi\Telex30\Objects\bin\extra\res3\res\values\values.xml:55: Original attribute defined here.
c:\androidsdk\extras\google\google-play-services\libproject\google-play-services_lib\res\values\common_attrs.xml:13: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
C:\Rahbord\Telexi\Telex30\Objects\bin\extra\res3\res\values\values.xml:34: Original attribute defined here.
c:\androidsdk\extras\google\google-play-services\libproject\google-play-services_lib\res\values\maps_attrs.xml:5: error: Attribute "mapType" already defined with incompatible format.
C:\Rahbord\Telexi\Telex30\Objects\bin\extra\res1\res\values\values.xml:6: Original attribute defined here.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Mikonios

Active Member
Licensed User
Longtime User
Hello,
Sorry to bother you, but I read your post and I have the same problem.
I have also followed DonManfred's instructions on ::
https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386
but I still do not solve the problem.
My Apk worked perfectly after upgrading Oreo Api 26.

Now updating google_play_services_8487000_r29 I have the same error:

B4X:
#AdditionalJar: com.google.android.gms:play-services-maps
#AdditionalRes: D:\0000AndroidEstudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res, com.google.android.gms

Generating R file.    Error
d:\0000androidestudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res\values\base_attrs.xml:11: error: Attribute "buttonSize" already defined with incompatible format.
D:\0000.- Android\Basic4Android\000-Mio\000.- CocoGas\Objects\bin\extra\res2\res\values\values.xml:47: Original attribute defined here.
d:\0000androidestudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res\values\base_attrs.xml:16: error: Attribute "colorScheme" already defined with incompatible format.
D:\0000.- Android\Basic4Android\000-Mio\000.- CocoGas\Objects\bin\extra\res2\res\values\values.xml:55: Original attribute defined here.
d:\0000androidestudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res\values\common_attrs.xml:13: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
D:\0000.- Android\Basic4Android\000-Mio\000.- CocoGas\Objects\bin\extra\res2\res\values\values.xml:34: Original attribute defined here.
d:\0000androidestudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res\values\maps_attrs.xml:5: error: Attribute "mapType" already defined with incompatible format.
D:\0000.- Android\Basic4Android\000-Mio\000.- CocoGas\Objects\bin\extra\res1\res\values\values.xml:6: Original attribute defined here.

If you managed to solve the problem, can you help me solve this puzzle ?
If you have solved it, could you tell me how?
Thank you very much in advance!!!
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
orry to bother you, but I read your post and I have the same problem.
you should start a new thread for YOUR issue.

I have also followed DonManfred's instructions on ::
https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386
but I still do not solve the problem.

No, you did not follow.
As stated the line
#AdditionalRes: D:\0000AndroidEstudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res, com.google.android.gms

should not be there

Now updating google_play_services_8487000_r29 I have the same error
This really sounds like you are reusing a old SDK Folder (and NOT using the B4A SDK Manager).

You can find the Setup-Instructions here. https://www.b4x.com/b4a.html
You also can watch this Video as it describes it clearly.

Start with a new Blank folder like you see in the Video.

I suggest to switch to B4A 8+
 
Last edited:
Upvote 0

Mikonios

Active Member
Licensed User
Longtime User
Thanks for your answer. With your indications :::

B4X:
' Dissable ::
' #AdditionalRes: D:\0000AndroidEstudio\gps8487000r29\google-play-services\libproject\google-play-services_lib\res, com.google.android.gms
' Add ::
' #AdditionalJar: com.google.android.gms:play-services-maps
' No find Ads1. Insert::
' #AdditionalJar: com.google.android.gms:play-services-ads
'
' And then::: ESTE PROBLEMA YA OCURRIO Y POR ESO DEJAMOS LA VERSION ANTERIOR DE GOOGLE PLAY
' ObfuscatorMap.txt File created in Objects folder.
' Compiling layouts code. (0.00s)
' Organizing libraries. (4.86s)
' Generating R File. (0.38s)
' Compiling generated Java code. (12.78s)
' Convert byte code - dex. Error
' trouble writing output: Too many method references: 72745; Max Is 65536.
' You may Try using --multi-dex option.

AND MULTI-DEX-OPTION IS NOT OPERATIVE. Leave and Return google_play_services_11509238 versión
Thank you very mutch ....
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…