on Android O - mm cmd fails in /framework/base

770 views
Skip to first unread message

rashmi...@gmail.com

unread,
Mar 12, 2018, 10:05:19 AM3/12/18
to Android Building
On Android version 8.1.0 project specific build with mm cmd is failing in /framework/base

[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
ninja: error: 'out/host/linux-x86/framework/host-libprotobuf-java-full.jar', needed by 'out/host/common/obj/JAVA_LIBRARIES/platformprotos_intermediates/classes-full-debug.jar', missing and no known rule to make it
12:55:19 ninja failed with: exit status 1

Please help me to resolve this. 

Dan Willemsen

unread,
Mar 12, 2018, 2:30:24 PM3/12/18
to Android Building
Have you run `mma` successfully before running `mm`? `mm` can really only handle rebuilds, since it doesn't attempt to build any required dependencies.

- Dan


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Diogo Ferreira

unread,
Mar 13, 2018, 10:30:11 AM3/13/18
to android-...@googlegroups.com
mm compiles all modules in a directory, you are missing a dependency of one of the modules. This is pretty common because regular builds do not compile tests or their dependencies. You can run 'hmm' to see commands that do take dependencies into account. In this case, you want 'mma':

λ hmm | grep " mm"
- mm:        Builds all of the modules in the current directory, but not their dependencies.
- mmm:       Builds all of the modules in the supplied directories, but not their dependencies.
             To limit the modules being built use the syntax: mmm dir/:target1,target2.
- mma:       Builds all of the modules in the current directory, and their dependencies.
- mmma:      Builds all of the modules in the supplied directories, and their dependencies.

Diogo

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages