Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do an android mm clean?

Tags:

I'm building custom module in Android source using the mm command.

When I run mm clean, it seems that the whole project is cleaned.

How can I restrict the clean to just the current module?

like image 306
herbertD Avatar asked Sep 29 '13 04:09

herbertD


People also ask

What is Android mm command?

The 'mm' command makes stuff in the current directory (and sub-directories, I believe). With the 'mmm' command, you specify a directory or list of directories, and it builds those. To install your changes, do 'make snod' from the top of tree. 'make snod' builds a new system image from current binaries.

How do I clean my Android build?

Clear your project directory Obviously, try to clean your project from android studio : “Build -> Clean Project”. This will clear your build folders. Clear the cache of Android Studio using “File -> Invalidate Caches / Restart” choose “Invalidate and restart option” and close Android Studio. Remove your .

What is Android lunch command?

lunch. Choose which target to build with lunch . lunch product_name - build_variant selects product_name as the product to build, and build_variant as the variant to build, and stores those selections in the environment to be read by subsequent invocations of m and other similar commands.


2 Answers

Use mm -B, it will rebuild all, equivalent to clean and then make.

like image 80
Raulp Avatar answered Sep 17 '22 10:09

Raulp


Another way to do without mm is to give make clean-<target name> from root of Android source.

Similarly you can build the required module alone with make <target name>

like image 30
vishalm Avatar answered Sep 18 '22 10:09

vishalm