This message was deleted.
# community-support
s
This message was deleted.
v
You are running Gradle 6.7 with Java 17. That is not compatible, or at least not tested. You probably have problems because of that. https://docs.gradle.org/current/userguide/compatibility.html
p
I just changed my JDK from 17 to 11, will it work?
Oh, And thanks for responding
v
Regarding compatibility with Gradle, yes.
p
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ‘appcompileDebugJavaWithJavac’.
Failed to install the following SDK components:
platforms;android-31 Android SDK Platform 31 Install the missing components using the SDK manager in Android Studio. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 2m 40s
v
Did you intend to ask a question? Because you didn't.
p
Sorry I see I didn’t copy the question part. I changed my JDK from 17 to 11 then this error came about, would you recommend that I also upgrade the Gradle or do you know another solution?
v
Read the error message? :-)
It seems to have a quite clear instruction
I'm not familiar with Android development though
p
I did download the Android SDK and yet it still gives me the same problem.
Thanks for the help sir
I’ll go ask from the Android Slack Group for help. Enjoy the rest of your day.
v
The error message does not say that the SDK is missing
p
but it’s already installed and it’s saying I must install it
v
No, it does not
It says you miss one of the packages you can install in the sdk and it even tells you where you can add it