Android Question "fontVariationSettings" has already been defined

Sureshv2

Member
Licensed User
Hi

Any one can help me to fix the below message ?
My target SDK version is 29. I have downloaded all recommended files from B4A sdk manager.
B4A Version: 9.50
Java Version: 8
Parsing code. (0.05s)
Building folders structure. (0.02s)
Compiling code. (0.08s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. Error
e:\android-sdk\tools\..\extras\b4a_remote\androidx\core\core\1.1.0\unpacked-core-1.1.0\res\values\values.xml:163: error: Attribute "fontVariationSettings" has already been defined
 

Sureshv2

Member
Licensed User
I have changed target SDK as 28 and still have same error.
Other projects are compiling without any error with target SDK as 28.
In this project, I had used IMEI No. to identify the user but for ANDROID 10 due to google restriction, we cannot read Hardward ID. So, I want to update my application for ANDROID 10 users.
I have used following libraries in this project.
AppCompat, ByteConverter, DateUtils, Encryption, FusesLocationProvider, GPS, JavaObject, Json, KeyvalueStore, OkHttp, Phone, SimCard, RuntimePermission, StringUtils, WebViewExtras2, WebViewSettings
 
Last edited:
Upvote 0

Sureshv2

Member
Licensed User
Now am getting different error in my new project. If I remove svcGPSTracker module then it is compiling without any issue.
B4A Version: 9.50
Java Version: 11
Parsing code. (0.03s)
Building folders structure. (0.02s)
Compiling code. (0.07s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (0.00s)
Compiling generated Java code. Error
B4A line: 141
LocationSettingsRequestBuilder1.AddLocationReques
src\b4a\example\svcgpstracker.java:1018: error: package com.google.android.gms.location does not exist
_locationsettingsrequestbuilder1.AddLocationRequest((com.google.android.gms.location.LocationRequest)(_locationrequest1.getObject()));
 
Upvote 0

Sureshv2

Member
Licensed User
Now I can build my new project with all files from old project without removing any libraries.
Thanks Erel for your swift support & response.
 
Upvote 0
Top