Android project integrates kotlin, which makes the project unable to run (a red cross appears) solution
Recently, the project is not too busy. It plans to lead to kotlin, which Google has pushed for several years. After all, kotlin is the preferred language for Android development recommended by Google and has been pushed for several years. Then, manually add various configurations and submit them to GIT. As a result, some students updated and compiled, that is, where there is a red cross in the project, they can't run anyway. Error: Please select Android SDK is also prompted in edit configuration. As shown below
Here's the solution.
At first, delete the libraries folder under the. Idea of the project. Just recompile (not really. Delete the. IML of module and. IML under project). Finally, can be happy coding
It's not long. I'm happy. I didn't find it for long. Then delete the libraries file, compile, coding
…
I found it too painful to go on like this and decided to completely eliminate it.
Through the query of data, it is said that the version of kotlin plug-in is inconsistent with that of colleagues. Take a quick look. It's really much lower than the kotlin version of the project. Next, it's simple. Just upgrade the kotlin plug-in.
File – settings – plugins, search kotlin, directly install or update the plug-in, and restart it
Local updates. 1. Go to the website to download plug-ins; 2. Set it to Android studio