Android Question FusedLocationProvider B4A 9.80 issue (Doesn't compile)

jtare

Active Member
Licensed User
Longtime User
I recently upgraded to B4A 9.80, followed the AndroidX tutorial (upgrading everything in the sdk manager and jettify everything) but still can't compile a project with the fusedlocationprovider library, I can't not even compile the example of this post by Erel (https://www.b4x.com/android/forum/threads/fusedlocationprovider-resolution-dialog.111652/#content).

This is the error:
Code: Copy
Generating R file.    Error
d:\android\android-sdk\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:36: error: Attribute "fontProviderFetchStrategy" already defined with incompatible format.
d:\android\android-sdk\tools\..\extras\b4a_remote\androidx\core\core\1.2.0\unpacked-core-1.2.0\res\values\values.xml:127: Original attribute defined here.
d:\android\android-sdk\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:51: error: Attribute "fontProviderFetchTimeout" already defined with incompatible format.
d:\android\android-sdk\tools\..\extras\b4a_remote\androidx\core\core\1.2.0\unpacked-core-1.2.0\res\values\values.xml:139: Original attribute defined here.
d:\android\android-sdk\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:61: error: Attribute "fontStyle" already defined with incompatible format.
d:\android\android-sdk\tools\..\extras\b4a_remote\androidx\core\core\1.2.0\unpacked-core-1.2.0\res\values\values.xml:147: Original attribute defined here.

If I delete the following
Code: Copy
#AdditionalJar: com.google.android.gms:play-services-location
And the code in the manifest
Code: Copy
AddApplicationText(<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />)
It can pass the Generating R file step but gets stuck later on because it can't find the additional jar.
Any idea on how to fix this?
 
You are using an unjetified library. Probably AppCompat and the library is probably in the internal libraries folder instead of the additional libraries folder.
I created a new project with just the core and fusedlocationprovider library and still can't compile. Could the core library be unjetified? The jetifier says "All set. Nothing to do!"
 
Upvote 0
Back
Top