unable to install android app - INSTALL_FAILED_MISSING_SHARED_LIBRARY - android

I am making an app which makes reference to Linphone app. I am sending an intent from a service in linphone to my app.
I installed Linphone on emulator (Android as well as Google API); but it installs erroneously and doesn't start. Logcat shows Cannot start linphone error. Because of this, my app couldn't get installed. I get foll. error and installation stops:
Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
So I installed Linphone on a device (Beetel android pad) and it works fine. After this, when I try to install my app, it fails to install. I am suspecting that it's the same problem as that in emulator. What can be the problem n how to solve it?
I have included <uses-library android:name="org.linphone" /> in manifest file.
I checked on the net, but I found results which mainly talked about apps using Google Maps and people advised to use Google API Emulator. I tried that but it didn't help me as anyway I am not using any Google API/service.
Any help in solving this problem or giving some direction towards it will be really appreciated.
Thanks,
Sagar.

run android.exe or android.sh utility this will bring up the program to install android SDk. Go to third party add-ons and select Google Api's. After they have been deployed/installed. Please make sure to re-start adb. If you are prompted for a restart of adb. Please say yes.
I am not sure with the ans. BUt I got it from a link, where the problem is same as u have mentioned here.
getting error msg install failed missing shared library

Related

Issue with Termux bootstrap

After downloading Termux from the Google Play store, FDroid, and Github, I got the error
Unable to Install
Termux was unable to install the bootstrap packages.
Check your network connection and try again.
I looked through Github and found this this reply saying to try to connect to http://termux.net/bootstrap/ in a browser. I tried with the phone I'm trying to put Termux on (Galaxy s5 with Android 6.0.1) and got a response saying 'connection timed out'. I tried on my desktop which is on the same network, and got the same response. I made a simple python script using the requests module on a Replit server and got the same response with error 522.
It seems like the Termux.net website isnt working for some reason, maybe because of a WiFi setting that has to get changed? What else do I try?
Issue is that old links for bootstrap package for Android versions 5 and 6 are not available anymore, for example domain https://termux.net is down and you can not access it.
You can fix this issue by following this wiki:
https://github.com/termux/termux-app/wiki/Termux-on-android-5-or-6
You can install artifacts from this link:
https://github.com/termux/termux-app/actions/runs/2619084610
*Zipped APK file termux-app_v0.118.0+605dd6c-apt-android-5-github-debug_armeabi-v7a can be downloaded from this link:
https://github.com/termux/termux-app/suites/7230045376/artifacts/289921940
*Note: Direct APK link will only work if you are signed in with your GitHub account
works great, just download the apk from link above and install
Thanks nexayq, just make sure you allow installation from unknown sources in your android settings.
Tested on two phones the ones with armeabi64-v8a works to know this just download device info hw from playstore

Is it possible to log information into android studio from installed android application?

I got a requirement to dig an application and log the information into the android studio or any console. The code base is not given to me. I only get an android device with the app installed. Is it possible?
One thing that you can do is try to extract the apk from the installed application, and then reverse engineer it.

In Android 8.0 and 8.1.0, I am unable to install the APK from drive directly?

I just installed oreo, set it up. works great! There is a minor issue though, I can't install APK from google drive by just tapping them I need to download them and then install. It says there was a problem parsing the package. Why is this happening? Can anyone suggest me?

Install 3th party app on android emulator

I'm trying to get Salesforce installed on a Android emulator.
But it seems Google Play has been removed from any and all official emulators.
Does anyone know how i can get Salesforce or any other 3rd party app on an Android emulator?
You can use adb for it.
adb install <path/to/apk>
https://developer.android.com/studio/command-line/adb.html#move
There are a bunch of sites that collect APKs and provide them to the world directly. Going for a quick Google surf saying "Salesforce apk latest" will give you a bunch of results. There will probably be a bunch of ads. When you finally download an APK, use the stuff #Lyra provided: Run adb install <apk file location>. And that's it. You're done!

Unknown error code during application install "-505"

I have checked this android 5.0 lollipop app install shows Unknown error code during application install: "-505". But it doesn't seem to address my case as I dont use multiuser env.
I have an app in the playstore which worked fine on my nexus 4(4.4.x) till i upgraded to lollipop and it showed this error every time i tried to install it from playstore(It installs fine if I run it via adb).
Can't understand why I might be facing this issue, neither is there any other reference to this error code.
Any help is appreciated.
This seems stupid on my part, yet finally found the answer which seems to be the fact that I had another dev app(diff package name) which had a common signed permission with the playstore app.
Buried deep in my logcat was this.
11-21 16:20:02.855: E/Finsky(8986): [1] PackageInstallerImpl.handleCommitCallback: Error -505
while installing <package>: INSTALL_FAILED_DUPLICATE_PERMISSION: Package <package> attempting to
redeclare permission <package>.permission.MAPS_RECEIVE already owned by
beginning with lollipop it seems this isn't permitted.
Thanks to everyone.
EDIT
The solution if not apparent yet is to change the permission from
<permission android:name="<old package>.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
to
<permission android:name="<new package>.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
or whichever signed permission that is causing the same.
With an official Lollipop version
and for mac users (i'm sure it's analogue to windows users):
Go to the terminal,
cd into: ADT/sdk/platform-tools
type ./adb uninstall the.app.package
and thats it!
you just uninstalled the app
don't add the -k flag - ('-k' means keep the data and cache
directories)
good luck!
This is caused by a bug with app certificate parsing in Lollipop:
https://code.google.com/p/android/issues/detail?id=79089
If the app you are trying to install has the same certificate as a similar app or related app with the SAME certificate, then Android 5.0 won't allow the installation, believing you are installing a duplicate of the already installed (but different) app. Only solution that worked for me? Uninstall the app with the same certificate, which would be an app made by same developer that made the app you are trying to install. Once you've uninstalled that app, install the problematic app, then go back and reinstall the other app which was already installed. This problem happened to me only once, when trying to install the FB Messenger app. I finally was able to install it after I uninstalled the Facebook app. Then I reinstalled Facebook after Messenger was installed. OK, good luck to all and hope this helps some of you.
Multiple users installing same app on same device may cause this error. Please remove other app from the device and that should work.
I faced similar issue, however in my case it was an old development build sitting on my device and when I was trying to install from play store this error was coming.
I have got similar problem and solved with this solution.
Solution: After you update your Android device to Android 5.0 Lollipop from an older version using Over-the-air update or sideloading factory image, do a factory reset. It has been found out that if you do a factory reset immediately after updating your Android version, the error does not occur, but if you don’t the error persists. Don’t forget to clear the cache too, going to Menu > Settings > Apps > Google Play Store > Clear Cache. Clear the data too, from the very same option.
Source: http://appslova.com/android-fix-unknown-error-code-application-install-505-error-505/
Hope this help!!
Try resetting the play store app. You won't lose your apps following these steps. Nothing important will be lost.
Steps to follow on a motorola xoom
Go to the app drawer (menu)
Tap settings
Tap applications
Tap the "All" tab
Scroll through and look for play store
Tap Play Store (not play store services!)
Tap "clear data"
You will then get a warning, click "ok"
That's it, go through your problem again and see if it fixed. Bear in mind you will have to re-accept the terms and conditions for the play store app, when this comes up, simply click "accept"
try adding applicationId to the defaultConfig section of gradle file like
defaultConfig {
applicationId "com.example.www"
}

Categories

Resources