Android Studio Gradle not Building Project

2019-04-28 12:40发布

enter image description here

I was using my android Studio very well. I don't know what happened and now I am getting only Building "xxxx" Gradle project info whenever I want to create my new project. I am unable to open any new project. Please help. I don't have even 10 reputations to upload the screenshot.

I think my Gradle is not working. How can I reset or restart my Gradle ?

5条回答
▲ chillily
2楼-- · 2019-04-28 12:59

Add this line

File -> Settings -> Compiler -> Gradle -> VM Options: -Xmx256m

查看更多
SAY GOODBYE
3楼-- · 2019-04-28 13:16

I think you have updated your gradle build tool. Go to file>setting>build,execution deployment> gradle> check your gradle tool version

查看更多
你好瞎i
4楼-- · 2019-04-28 13:16

I had many hours trying to figure this out.

I have followed just about every Stack-overflow article on the issue.

The cause for me was my Anti-virus and Firewall settings. I turned these off, and restarted my Android Studio opened my application I was trying to build it all downloaded what it needed and sync'd nicely. Problem solved, relief as I have been literally days on this.

查看更多
贼婆χ
5楼-- · 2019-04-28 13:17

I was failing a class because of this issue. I solved it by

1) Do not delete the Android Studio Version You Downloaded, Leave it intact 2) Google search an older version of Android Studio, in my case, 2.1.1 3) Download it and install, CHOOSE CUSTOM INSTALL 4) A message should appear saying approximately "Another version of Android Studio has been discovered, the installer will only download the missing files" 5) Confirm by starting a new project

查看更多
Anthone
6楼-- · 2019-04-28 13:24

I faced the same problem. Had to wait for 30 minutes for the project to built. But then it was working properly again. So maybe waiting is a solution.

查看更多
登录 后发表回答