Work in progress

This site is currently undergoing an update. If you spot any problems on this page, please let me know.

Missing com.google.android.maps

Thanks to this post, and a whole heap of other stuff, I finally sorted out a Google Maps problem on my Nexus One.

When trying to install some apps, I would see this error message in logcat:

requires unavailable shared library com.google.android.maps

I had the Google Maps app installed and working, but that didn’t fix the issue. It turns out, I had to add two other files and restart the phone. I found those files in the google zip from Cyanogenmod. It took a little fiddling, but I was able to use these instructions to remount /system in write mode. First step was to take the following two files from the google apps zip (gapps-hdpi-20101114-signed.zip) and put them onto my sd card.

/system/etc/permissions/com.google.android.maps.xml<br /> /system/framework/com.google.android.maps.jar

Then to load them onto the phone, I opened the terminal emulator and ran:

su<br /> mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system<br /> cp /mnt/sdcard/``com.google.android.maps.xml /system/etc/permissions/<br /> cp /mnt/sdcard/``com.google.android.maps.jar /system/framework/

Then after I rebooted the phone, I was able to install apps that depend on Google Maps. I can now check bus and train times, and do all kinds of other cool stuff with maps! 🙂

Note, this is only relevant if you do not want all Google Apps installed. I only have the map application installed as I don’t sync my phone with any Google services. If you’re using all the Google Apps, I suggest reinstalling as these steps should not be necessary.

To add a little colour, here’s an unrelated picture from flickr, courtesy of epSos.de.

Comments

Callum at 2011-03-09 08:47:24

I'm not sure what root explorer does. I know that on my Nexus One, the /system filesystem had to be remounted. Does root explorer do that for you?

Callum at 2011-03-04 19:52:12

Not sure what s-off is. I think your phone has to be "rooted", so you can gain root privileges, but I'm assuming that must be the case if you don't have the stock google apps installed. Have you re-mounted /system as writable? That's what the <code>mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system</code> command does. But /dev/block/mtdblock3 might be different for your phone, you could run <code>mount</code> to see...

daniel at 2011-03-04 19:40:30

do i have to be s-off to do that? It tells me can´t create system/etc...... cannot allocate memory! thx dani

daniel at 2011-03-04 21:07:39

htc does this now to protect nand from changing.... but i dont really know what is protected... i found a way around the problem:) new version of the rom... thx for answering:) dani

s at 2011-08-17 05:03:21

How do i download googlebody on my nook color?????? :'(

Sage at 2011-03-09 06:52:42

I am trying this with my witstech a81e tablet running android 2.2. I am getting the same error with some apps i try to install. Though i have used root explorer to copy the files to the appropriate paths the files copy fine though after a reboot i still get the same error. Is copying through root explorer the same as using the commands through terminal emulator?

AkaJazz at 2011-04-07 16:32:55

Dude, seriously, you rock. I googled far and wide to figure out why Tasker wouldn't install on my Notion Ink Adam (shared library error) and this fixed it. I'm ecstatic I got this working, thank you very much!!

Callum at 2011-04-07 16:39:08

Glad it helped out, I know the feeling, it took me ages to find a solution! :-)

Bessam at 2012-01-11 22:33:21

Terrific. I still couldn't load from the market but side loading the APK worked fine. I discovered this issue trying to install Foursquare on a rooted/ROM'ed Optimus T.

Sony at 2012-03-23 07:46:04

Thank you very much for your post, really help my problem with foursquare installation...now I can install foursquare on my device flawlessly....

tpraveeen at 2011-07-16 08:43:36

Hi Callum, Can u please let me know how to compile and generate the maps.jar in the nexus codebase? and also how to add more default applications to the nexus codebase. As AndroidMarket app doesnot exists in the build image for nexus . Thanks..

Callum at 2011-08-17 11:56:30

I have no idea.

[ROM] XAUMOD Custom Firmware for APAD IMX515 (Single Speaker, Utopia) at 2011-02-28 07:13:56

[...] problem regardless of ROM and tablet. After a couple days of searching, I found this post - Missing com.google.android.maps | Callum Macdonald (Note that the download url for the google.zip file didn&#039;t work, and I couldn&#039;t find it on CM so [...]

Sage at 2011-03-13 23:38:47

Yeah they are still there.. i am trying by an terminal emulator now though after typing in the first line after SU i get: Usage: mount [-r] etc etc etc.. dont think it likes the command.

Sage at 2011-03-13 23:43:38

oops didnt notice the SPACE before "/system" at the end. Now says invalid argument. lol

Sage at 2011-03-14 02:26:28

just had a look at the source. it says: (Replace /dev/block/mtdblock3 &amp; /system with appropriate device path and mount point, as obtained from cat /proc/mounts) So maybe my path is different.. just ran it and it shows lots of different paths.. so i guess i need to work which i need to use.

Sage at 2011-03-11 00:53:00

Root explorer allows you to modify all the directories on the phone (android app) using superuser access.. Have put the files where they belong and edited the permissions though still not working. I still get the error about the shared library being unavailable. :(

Callum at 2011-03-11 08:09:14

When you reboot the phone, are the files still there? If so, I'm not sure what else to suggest. Do you have the google maps app installed?

Narenderan at 2011-08-19 15:38:14

thanks for the wonderful post .. it helped a lot..

shilpa.T.M at 2011-11-04 11:32:31

hi, thanks for the document it helped me a lot .I really was in need of the same.

Jean-Matthieu D. at 2011-05-31 17:02:58

Thanks, I've been looking for this !!!

Callum at 2011-07-16 15:47:29

I've no idea I'm afraid. I haven't compiled anything for or on android. I haven't done any android coding of any kind actually. Best of luck.

David at 2011-07-19 21:10:25

Hi Someone knows if is possible do it these with a phone non rooted? Many thanks

Dave at 2012-05-31 21:29:51

This solved my inability to install Endomondo on my razr (MIUI 2.5.252). SDcard install only.

Danny at 2012-08-06 00:30:38

Epic post, exactly the walk through I was looking for. Cheers.

Nachschlag fürs Adam: Maps-API | Martok&#039;s Place at 2012-09-30 22:24:41

[...] man das dann aber, kann man ein wenig rumgooglen und findet eine sehr schöne Anleitung bei Callum Macdonald (Wahnsinns Lebenslauf. Mein Traum!). Der Link zu den Dateien funktioniert mittlerweile nicht mehr, [...]

Missing shareed libary com.google.android.maps | 十三科技十三科技 at 2012-10-10 09:50:54

[...] 今天非常奇怪,在安装手机的时候出现下面的错误 isstall failed Missing shareed libary com.google.android.maps 经过一番搜寻发现下面这篇文章:missing-com-google-android-maps [...]

Anonymous at 2012-07-20 20:10:13

Works like charm. Many thanks!

Ankit at 2012-09-07 09:02:24

same error I'm also getting I'm trying to push to files maps.jar and com.google.android.maps.xml into framework and permission directory respectively int emulator Android 4.0 Google API steps: 1)adb remount 2)adb push com.google.android.maps.xml /system/etc/permission when I excuting 2 step it displaying failed to copy:out of memory any soluton?

Installare le librerie condivise di Google Maps su Android | Paolo Bernardi&#039;s Weblog at 2012-08-09 18:18:17

[...] Neanche l&#8217;installazione di Google Maps dallo store fornisce quelle librerie condivise, che tuttavia sono necessarie per lo sviluppo di applicazioni Android che fanno uso di Google Maps. Per risolvere questo problema ho riadattato un po&#8217; la procedura presentata in questo articolo. [...]

Callum at 2013-04-10 10:35:58

I'm afraid I'm not sure what's going on here, what the cause is, or what any solution might be. Far beyond my Android hacking experience. Best of luck finding a solution.

Waldilein at 2013-03-31 23:04:33

Special thanks for this. I've copy both files to internal sd an moved this with "root explorer" app in the target directory. Reboot and fine. The app "Runtastic" is now successfully installed and working. Now I've a other problem. I've a SGS3 and Cyanogenmod 10.1. I use philz touch Recovery (advanced CWM). So I'm able to use the auto-update function in Cyanogenmod. Problem, after a update the both files are away (Runtastic App also) and I must copy again in target directory. After copy the files and reboot, runtastic app is available and working (without reinstall). Some for Endomondo. Is there any way that this 2 files are fixed in the directories? With gapps is working fine. But I'll not using gapps. I'll not use the google Ad-/Spyware also...Playstore not needed. Hope you can understand (German). Thank you!

Frank at 2013-04-16 12:43:30

Hi Callum, thx for sharing! Worked well on my CM10.1! I dunno if that's necessary but I modded your 'script' to adapt owner and permissions: su mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system cp /storage/sdcard1/Appz/com.google.android.maps.xml /system/etc/permissions/ chmod 644 /system/etc/permissions/com.google.android.maps.xml chown root:root /system/etc/permissions/com.google.android.maps.xml cp /storage/sdcard1/Appz/com.google.android.maps.jar /system/framework/ chmod 644 /system/framework/com.google.android.maps.jar chown root:root /system/framework/com.google.android.maps.jar All the best! Frank

Desventuras em série &#8211; Tablet Genesis GT-7200 : Dev Blog at 2013-01-14 20:31:50

[...] [Missing Shared Library prevents Apps install http://www.callum-ma&#8230;-android-maps/] [...]

Snoman002 at 2013-12-10 05:28:40

Thanks for this! Using these instructions I was able to get tasked working on my Ouya.

4Freedom at 2013-11-19 10:26:21

Thank you Callum for this blog post! I ran into trouble installing apps on Cyanogenmod because I don't use have Google Apps - and I didn't plan on installing them either. Your solution is straightforward. I ran the default filemanager that comes with cyanogenmod as root (had to change this from 'Secure Mode' in the app settings) and just copied the two files to the same location on my phone: /system/etc/permissions/com.google.android.maps.xml /system/framework/com.google.android.maps.jar After a reboot I could see that some apps were being 'updated'. Now I was able to install the apps which depended on those two files. Thanks again :)

Elephone user at 2015-01-31 14:26:09

Thank you Callum, After the mount command I used a file manager to copy the files to the right location because sd cards in my Elephone p10 are a bit different. but it works like a charm! Cheers!

Markus at 2015-03-15 10:19:42

I do not have these folders on my phone to put the files into. I run cyanogenmod on my phone. Does it not work there?

Installare le librerie condivise di Google Maps su Android &#8211; Paolo Bernardi at 2016-10-04 11:53:46

[&#8230;] Neanche l&#8217;installazione di Google Maps dallo store fornisce quelle librerie condivise, che tuttavia sono necessarie per lo sviluppo di applicazioni Android che fanno uso di Google Maps. Per risolvere questo problema ho riadattato un po&#8217; la procedura presentata in questo articolo. [&#8230;]

Linux &#038; co. &#8211; Paolo Bernardi at 2016-10-04 11:52:37

[&#8230;] Neanche l&#8217;installazione di Google Maps dallo store fornisce quelle librerie condivise, che tuttavia sono necessarie per lo sviluppo di applicazioni Android che fanno uso di Google Maps. Per risolvere questo problema ho riadattato un po&#8217; la procedura presentata in questo articolo. [&#8230;]

Andi at 2017-07-21 08:25:44

This post is quite old and some of the links are not working anymore since the CM website does not exist anymore. I'm using Lineage 14.1 on a Fairphone 2 with MicroG. Most Apps are working fine, some give me that error message when I try to install them. I'm not able to find the mentioned files in the OpenGAPPS package. Are they somewhere hidden or not included?