Android AndroidStudio import project Run button gray

Written in the front : If there is no error message, if it tells you Failed directly, it is likely that when you changed the version after importing, you typed a wrong space in the version number in gradle or something, and then it failed directly. You can create a new one to be sure Then copy the code in the gradle and compare it to see if you have typed more or less a space or something!

1. There will be various problems when importing other people’s projects into Android studio, which is very troublesome. The main reason is the version/SDK problem. Other people’s gradle is not compatible with you and you need to change it. 2. If it fails, there will be a
red exclamation mark in the lower left corner to tell you what is wrong
3. Click the top part of the box in the lower left corner, and an error message will appear in the lower right corner, then press the error message after the colon to search for how to solve it
4. Don’t forget to click File -> Sync Project with the gradle File to re-import after modification. wait a little longer
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42538406/article/details/107159689