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
 
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
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
Back
Top