Build .apk file using Ubuntu shell, "mm"-Command not working.

4,529 views
Skip to first unread message

FM

unread,
Apr 8, 2011, 8:46:54 AM4/8/11
to Android Building
Hi everybody,

I set up my Android Custom Rom development yesterday.
Today i tried to create an application which is on the device
automatically.

I Coded an Android Application, disabled "Build automatically" in
eclipse, created a Android.mk file and registerd it in the core.mk
file.

Now i would like to create a .apk file from my app by using the "mm"
Command in my apps folder. (packages/apps/BuiltInApp)

The make command does not work:

make: *** Keine Targets angegeben und keine »make«-Steuerdatei
gefunden. Schluss.


The "mm" command does not work either:

root@felix-H55M-UD2H:~/mydroid/packages/apps/BuiltInApp# mm
Das Programm »mm« ist in folgenden Paketen enthalten:
* mountmanager
* multimail
Versuchen Sie: apt-get install <ausgewähltes Paket>



What is the problem here? Can anybody tell me how to create this .apk
file using "mm" or "make"?

Ying Wang

unread,
Apr 8, 2011, 1:21:02 PM4/8/11
to android-...@googlegroups.com, FM
"mm" or "mmm" only works with incremental build, ie anything it depends on are already in place.
Doing "make <ModuleName>" in the source root will build your module (as well as its dependency) with the minimal effort.


--
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

FM

unread,
Apr 11, 2011, 11:16:28 AM4/11/11
to Android Building
Hi,

if I execute "make" in the top source directory there is no .apk file
created for my BuiltInApp . When I launch . build/envsetup.sh before
executing "mm" in my BuiltInApp directory it is working fine. But I'm
getting this error now.

target Dex: BuiltInApp
out/host/linux-x86/bin/dx: Zeile 89: exec: java: Nicht gefunden.
make: *** [out/target/common/obj/APPS/BuiltInApp_intermediates/
noproguard.classes-with-local.dex] Fehler 127
make: Verlasse Verzeichnis '/home/felix/mydroid'
root@felix-H55M-UD2H:~/mydroid/packages/apps/BuiltInApp#


On Apr 8, 7:21 pm, Ying Wang <wangy...@android.com> wrote:
> "mm" or "mmm" only works with incremental build, ie anything it depends on
> are already in place.
> Doing "make <ModuleName>" in the source root will build your module (as well
> as its dependency) with the minimal effort.
>

Ying Wang

unread,
Apr 11, 2011, 1:30:52 PM4/11/11
to android-...@googlegroups.com, FM
Sorry, I don't know German.
If your Android.mk is found by the build system, "make BuiltInApp" in the top dir will build and install BuiltInApp into the system image.

FrankG

unread,
Apr 11, 2011, 3:45:14 PM4/11/11
to Android Building
Hello ,

the error means, that make couldn't find java. But he didn't said
so far which platform he is using, so I'm confused which java version
he should use.

Maybe Felix can elaborate a little bit what this part of his original
posting means
"I set up my Android Custom Rom" ?

And I would suggest that he look in the vendor dir and build his own
app as
a vendor extension.

Good luck ! Frank

FM

unread,
Apr 11, 2011, 4:26:18 PM4/11/11
to Android Building
Hi there,
what I meant is, "I set up my Custom ROM Development Environment" ;)

If I type java -version without being logged in as admin (sudo -s) the
shell tells me JDK 1.6.0 is my Java Version. If I type the same with
admin rights, the shell tells me there are 3 packages where this
command can be found. I do not know if that matters.


If i do make in the BuiltInApp Folder the error is, that no target is
specified. If I type make BuildInApp its the same.
I will give you some more information tomorrow, I will be at work
then.

Thank you for your help so far :)

FrankG

unread,
Apr 13, 2011, 3:03:29 AM4/13/11
to Android Building
Hi Felix,

you also need to explain, which platform version your are
trying to build. This info is missing in my eyes.

Good luck ! Frank
Message has been deleted

anand kumar

unread,
Jun 17, 2014, 2:22:14 AM6/17/14
to android-...@googlegroups.com

anand kumar

unread,
Jun 17, 2014, 2:25:06 AM6/17/14
to android-...@googlegroups.com
hi FM,

    I am facing the same problem on kitkat. Cpp functions are not compiling due to this .so file is not created.How u resolve this issue. It is also depend on the android source code ?

Regards
Anand

Reply all
Reply to author
Forward
0 new messages