nibbo Active Member Licensed User Longtime User Dec 3, 2020 #1 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
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 Dec 3, 2020 #2 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: B4A – The simple way to develop native Android apps B4A includes all the features needed to quickly develop any type of Android app. B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others. www.b4x.com Upvote 0
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: B4A – The simple way to develop native Android apps B4A includes all the features needed to quickly develop any type of Android app. B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others. www.b4x.com
nibbo Active Member Licensed User Longtime User Dec 3, 2020 #3 DonManfred said: The error happens because you are using an old and deprecated SDK. Click to expand... Using B4A 10.2 and the latest Android SDK. Upvote 0
DonManfred said: The error happens because you are using an old and deprecated SDK. Click to expand... Using B4A 10.2 and the latest Android SDK.
DonManfred Expert Licensed User Longtime User Dec 3, 2020 #4 If you download the sdk from the link above (and correctrly make use if it) the ide should be configured to use AndroidX. Based on the error it seems you are not compiling against AndroidX but the old support library. Upvote 0
If you download the sdk from the link above (and correctrly make use if it) the ide should be configured to use AndroidX. Based on the error it seems you are not compiling against AndroidX but the old support library.
nibbo Active Member Licensed User Longtime User Dec 3, 2020 #5 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
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