Android Question Problems after (failed?) update to AndroidX

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Using the latest B4A 9.3 and tried to update to AndroidX, following these instructions:
https://www.b4x.com/android/forum/threads/androidx-sdk.107236/

Not sure it is relevant but had some access denied exceptions, eg:
Library: AppCompat.arr java.nio.file.AccessDeniedException:
C:\Program Files (x86)\AnywhereSoftware\Basic4android\AdditionalLibraries\B4A\AppCompat.androidx.aar

Jetifier seems to have done it's job as it says now: All set. Nothing to do!
I see only a few files with the android.jar or androidx.aar extension in the AdditionalLibraries\B4a\
folder. Not sure this is OK.

Now if I load my project I get:
An error occurred:
Maven artefact not found:
androidx.activity/activity

I tried to download a new sdk-tools-windows-4333796.zip from:
https://developer.android.com/studio/index.html#command-tools
But that link doesn't work (just nil happens).

Any suggestion how to solve this problem?


RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User

Managed to download sdk-tools-windows-4333796.zip from a different site, but I can't see a file android.jar in there.

RBS
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Don't think I did. I installed the SDK to C:\Android\

My fault. I meant to say that you placed your ADDITIONAL Libs folder in the programfiles.
Programmfiles is a restricted folder. A javaapp does not have write access here.

Library: AppCompat.arr java.nio.file.AccessDeniedException:
C:\Program Files (x86)\AnywhereSoftware\Basic4android\AdditionalLibraries\B4A\AppCompat.androidx.aar

Put your additional libs also under C:\Android\ if you want.
 
Upvote 0

RB Smissaert

Well-Known Member
Licensed User
Longtime User
My fault. I meant to say that you placed your ADDITIONAL Libs folder in the programfiles.
Programmfiles is a restricted folder. A javaapp does not have write access here.



Put your additional libs also under C:\Android\ if you want.

OK, thanks.
Then maybe the default folder for the B4A install shouldn't be C:\Program Files (x86)\

RBS
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…