1. Go to the directory of the project to be imported and delete .idea, *.iml, local.properties (* means all)
2. Enter the app folder and delete build and *.iml in the same way
3. Open the successfully run project
4. Open gradle \wrapper\gradle-wrapper.properties, copy the specified content in the figure, and go to the project to be imported to replace it.
5. Change the version
6. Click file/Project Structure.../
After completing the above steps, you can try to run