简体   繁体   中英

android studio is taking too long time to build

我是 android 的新手,android studio 的构建时间太长了,我正在截屏,不知道为什么

I have noticed that sometimes Android Studio builds either get stuck or slow down for seemingly no reason. First thing to try would be to quit Android Studio, then run ./gradlew --stop from the command line to make sure any Gradle deamons have been shut down completely. You may also want to do a ./gradlew clean to get rid of any intermediate files that might be troubling the build.

If that doesn't help, you may need to look into optimizing your build. There are lots of resources on the web, but you might want to start with the Android team's list of ideas .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM