- INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android
- 14 Answers 14
- Shared library missing in android.
- 8 Answers 8
- INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android Studio — Java/Kotlin and Visual Studio — Xamarin
- Android Error on Installation: [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
- INSTALL_FAILED_MISSING_SHARED_LIBRARY
- 1 Answer 1
- Not the answer you’re looking for? Browse other questions tagged android google-maps or ask your own question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android
When I am trying to run an android application which uses Google API I get the following error
[2009-07-11 11:46:43 — FirstMapView] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2009-07-11 11:46:43 — FirstMapView] Please check logcat output for more details.
[2009-07-11 11:46:44 — FirstMapView] Launch canceled!
Can anyone help me solve this error?
14 Answers 14
To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY error with Google Maps for Android:
Install Google map APIs. This can be done in Eclipse Windows/Android SDK and AVD Manager -> Available Packages -> Third Party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android API X
From command line create new AVD. This can be done by listing targets (android list targets), then android create avd -n new_avd_api_233 -t «Google Inc.:Google APIs:X»
Then create AVD (Android Virtual Device) in Eclipse Windows/Android SDK and AVD Manager -> New. -> (Name: new_avd_X, Target: Google APIs (Google Inc.) — API Level X)
IMPORTANT : You must create your AVD with Target as Google APIs (Google Inc.) otherwise it will again failed.
Create Android Project in Eclipse File/New/Android Project and select Google APIs Build Target.
Run Project as Android Application.
If error persists, then you still have problems, if it works, then this error is forever behind you.
Источник
Shared library missing in android.
02-18 00:02:08.432: ERROR/PackageManager(57): Package com.example.brown requires unavailable shared library com.google.android.maps; failing!
I got this exception in logcat.
Can anyone guide me?
8 Answers 8
As CommonsWare said, your emulator is missing the library. The Google Maps Library’s documentation’s Overview page has info on how to create the right kind of virtual device for the emulator. The gist is:
Launch the AVD Manager by using the android command without any options. If you are developing in Eclipse/ADT, you can also access the tool from Window > Android SDK and AVD Manager.
- Click the «New» button to begin creating a new AVD.
- In the dialog that appears, specify a name for the AVD and select the system image target that you want the AVD to use. Select one of the «Google APIs (Google Inc.)» targets, making sure to choose a version whose API Level matches the android:minSdkVersion attribute in your application’s manifest, as described above.
- Configure the other options and then click «Create AVD».
Once you’ve finished creating the AVD, you can run it from the AVD Manager UI or you can use the emulator’s command-line interface. If you are developing in Eclipse, you can configure a Run Configuration to start the AVD and install your application on it.
For more information about AVDs, see Android Virtual Devices on the Android Developers site.
Источник
INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android Studio — Java/Kotlin and Visual Studio — Xamarin
I am wanting to debug and install my application on a physical clock.
First I tried to create the application in Xamarin.Android, I finished the application and it worked very well in an emulator, but when I tried to send to the device, the following error appeared:
ADB0010: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn’t be >installed in /data/app/AppXamarinWear.AppXamarinWear-1: Package >AppXamarinWear.AppXamarinWear requires unavailable shared library >com.google.android.wearable; failing!] em Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String >output, String packageName) na >E:\A_work\1824\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputP>arsing.cs:linha 341 em Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.>>b__0(Task 1 t) na >E:\A\_work\1824\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:li>nha 753 em System.Threading.Tasks.ContinuationTaskFromResultTask 1.InnerInvoke() em System.Threading.Tasks.Task.Execute() 0
Then I created an empty project in AndroidStudio, just created the project, did not change any line of code, and tried to run the application on the device, so I got the following error:
Installation failed with message Failed to commit install session 1131471407 >with command cmd package install-commit 1131471407. Error: >INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn’t be installed in >/data/app/br.pinheiros.weardebug7-1: Package br.pinheiros.weardebug7 requires >unavailable shared library com.google.android.wearable; failing!. It is possible that this issue is resolved by uninstalling an existing >version of the apk if it is present, and then re-installing.
I understood that the two solutions are bringing the same error, something with Google Api, I have already changed all the developer settings in Wear.
Источник
Android Error on Installation: [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
So this has been bugging me for a while now. It used to work fine when I put it on an actual android device, and only showed the error when I tried to install my app on a emulator but now it is showing up on both the emulator and the actual device. The error is:
The logcat shows a lot of stuff but most of it looks like this (Uploading the entire logcat goes over my word limit):
04-25 21:23:25.420: ERROR/StrictMode(1703): null android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cfecc0 that was originally bound here at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:969) at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863) at android.app.ContextImpl.bindService(ContextImpl.java:1418) at android.app.ContextImpl.bindService(ContextImpl.java:1407) at android.content.ContextWrapper.bindService(ContextWrapper.java:473) at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157) at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145) at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:191) at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1850) at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551) at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856) 04-25 21:23:25.447: ERROR/ActivityThread(1703): Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cff068 that was originally bound here android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cff068 that was originally bound here at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:969) at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863) at android.app.ContextImpl.bindService(ContextImpl.java:1418) at android.app.ContextImpl.bindService(ContextImpl.java:1407) at android.content.ContextWrapper.bindService(ContextWrapper.java:473) at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157) at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145) at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116) at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249) at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856) at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551) at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856)
And finally, here is my manifest, anything wrong? I know it ussually has something to do with but I think I have those in there already
Источник
INSTALL_FAILED_MISSING_SHARED_LIBRARY
I have a map application. I want to install it on a device having no maps library available. Can’t I burn in along the app.
1 Answer 1
No, you can’t «burn in along the app», unless you’re a pirate. Google Maps is software that is licensed by device manufacturers or is obtained from the Android Market. If a device does not have it, there is nothing you can do about that fact.
There is an undocumented android:required attribute on the element. However, we have been told it is safe to use, that it being missing from the documentation is merely a documentation bug. You can use android:required=»false» to allow your app to run on a device that lacks Google Maps. This does not magically add Google Maps, though, and so if you try to start a MapActivity , it will crash. But, using Class.forName() , you can see if MapActivity exists, and if it does not, do something else for your maps (e.g., WebView and Web-based Google Maps, OpenStreetMap).
Not the answer you’re looking for? Browse other questions tagged android google-maps or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.12.3.40888
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник