S Sureshv2 Member Licensed User Jan 4, 2020 #1 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 Click to expand...
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 Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2020 #2 Sureshv2 said: My target SDK version is 29 Click to expand... This is a mistake. Should be 28 for now. Does it happen with all your projects? Which libraries are referenced? Upvote 0
Sureshv2 said: My target SDK version is 29 Click to expand... This is a mistake. Should be 28 for now. Does it happen with all your projects? Which libraries are referenced?
S Sureshv2 Member Licensed User Jan 5, 2020 #3 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 Click to expand... Last edited: Jan 5, 2020 Upvote 0
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 Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2020 #4 Make some tests. Create a new project and add these libraries. Do you get this error? If so remove SimCard and try again. Upvote 0
Make some tests. Create a new project and add these libraries. Do you get this error? If so remove SimCard and try again.
S Sureshv2 Member Licensed User Jan 5, 2020 #5 Ok. Let me create a new project then update here. Upvote 0
S Sureshv2 Member Licensed User Jan 5, 2020 #6 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())); Click to expand... Upvote 0
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())); Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2020 #7 Check my note in the end of the first post: https://www.b4x.com/android/forum/threads/fusedlocationprovider.50614/#content Upvote 0
Check my note in the end of the first post: https://www.b4x.com/android/forum/threads/fusedlocationprovider.50614/#content
S Sureshv2 Member Licensed User Jan 5, 2020 #8 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
Now I can build my new project with all files from old project without removing any libraries. Thanks Erel for your swift support & response.