Harsh Shrivastava
Harsh Shrivastava

Reputation: 9

.xml File In Android studio is not opening

I was trying to start my start android devv so I installed android studio following a online course after installation when i tried to open .xml file isn't opening message at bottom is:

Could not initialize class org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSetKt

ERROR IMAGE 1

ERROR IMAGE 2

FAILURE: Build failed with an exception.

org.jetbrains.kotlin.config.LanguageVersion

BUILD FAILED in 3s

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings

The build scan was not published due to a configuration problem.

The Gradle Terms of Service have not been agreed to.

For more information, please see https://gradle.com/help/plugin-terms-of-service.

Alternatively, if you are using Gradle Enterprise, specify the server location. For more information, please see https://gradle.com/help/plugin-enterprise-config.

Upvotes: 0

Views: 602

Answers (2)

david
david

Reputation: 441

Some versions of kotlin is not compatible with some versions of gradle, check the version of kotlin and gradle, update, then clean and rebuild the project

Upvotes: 0

Sneh Agrawal
Sneh Agrawal

Reputation: 1

First check your latest kotlin version i think you are usinv old one or try to reinstall and download all sdk components files which you missed.

Upvotes: 0

Related Questions