I just installed Android Studio, created my first project and got this message: "Unable to load class net.rubygrapefruit.platform.NativeIntegrationUnavailableException".
I asked my tutor for help, he said I don't have Java installed, but I have it installed: my Kotlin projects compile. The version of the SDK I have is 33. Can you please tell me how to solve this problem?
For anyone who still has this problem after restarting Android Studio, or after clearing the Android Studio cache, here is a definite fix.
This error does sometimes seem to pop up when there is a SDK update in Android Studio. To fix this, go to the gradle-wrapper.properties
file, and update the distributionUrl
as such:
gradle-wrapper.properties
file and edit the distributionUrl
by replacing the existing version with the latest version that you found in step 2. Here is an example:Old version: distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
Replace with:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip