Android Question App suddenly crashing

nibbo

Active Member
Licensed User
Longtime User
Getting a strange error: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/content/ContextCompat;
I have read a few similar threads but they all imply a dodgy install, I have been developing with this install for over 3 years!
This error happens in RuntimePermissions
B4X:
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)

Anyone know what this error actually means?
Thanks
 

DonManfred

Expert
Licensed User
Longtime User
The error happens because you are using an old and deprecated SDK.

The solution is to install a new SDK based on the Installationinstructions here:
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Ooops, thanks as always DonManfred.
I had downloaded the latest SDK but did not realize the path name had changed to the android.jar file.
Updated the configured paths and back in business.

Thanks again
 
Upvote 0
Top