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?
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.
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 .
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.
Use mm -B
, it will rebuild all, equivalent to clean and then make.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With