How to project clean in android studio?

2019-01-03 17:21发布

I am new in Android studio so I face some problem with it. so please anyone can give me a way how to project clean in Android studio.

In Eclipse Project -> clean -> OK but I don't know how it is done with Android Studio.

2条回答
狗以群分
2楼-- · 2019-01-03 17:58

Cleaning an android project is quite simple just follow these steps

1. Click on Gradle pane,found in the top-right corner of Android Studio 
2. Click on your project,then Tasks -> build ->clean

Step 1 Step 2

Note- Never clean your project using the Build -> Clean Project.Instead of cleaning your project it will increase the size of it.

Edit- clean has been replaced by cleanBuildCache in the recent versions of Android Studio.

查看更多
Juvenile、少年°
3楼-- · 2019-01-03 18:15

You can clean your project doing this

Build > Clean Project or Build > Rebuild Project

Also you can do the gradlew clean

enter image description here

As @Kellogs commented :

Manually delete the [project]/.gradle as hidden folder as that one is the main culprit for large cleaned projects sizes.

查看更多
登录 后发表回答