I am running my app on Genymotion emulator, but from past 2-3 days it is showing
Installation failed with message INSTALL_FAILED_VERIFICATION_FAILURE.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. error.
I don't know what is problem.
Thanks
Here is an explanation of the problem from the Genymotion team and how to solve it quickly.
One of the steps of the Android application installation is the application verification.
This step is a security feature that prevents applications including malware to be installed.
This step is only activated when Google Play Services are installed.
For safe apps, the application should be installed without any problem.
However, since the latest version of Google Play Services, the verifier rejects all application installation, even safe ones.
We are actively working on a solution for this problem. In the meantime, please use the following workaround to disable the verification:
If not already done, enable the developer settings by clicking several times on Build number in the About phone section of Settings
Go to the developer settings
If not already done, enable USB debugging
Disable verify apps over USB
Try again to install your application
the same error is fixed by this steep
1,Enable Developer settings :
Open Settings > ( settings of genemotion emulator or nox ).
Click 5 times on Build number.
Navigate to Developer settings.
2 Enable USB debugging.
3 Disable Verify apps over USB.
This is what I have done. Just turn on USB debugging in developer option in genemotion emulator just like you do in your phone.Removes safety check. It works.
This happened to me today after I've been doing USB debugging for months. My issue ended up being the fact that the device was in airplane mode which caused the verification to fail. When I turned the network on again it worked.
after done all step in Previous post , do this
Genymotion -> Settings -> Security -> check 'Unknown Source'
Related
Recently I tried to debug an application on my phone but I found this error :
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
I tried the following :
Disable USB Debugging and Re-Enable it.
Disable MIUI Optimization and Re-Enable it.
Restart my phone.
The Problem still exists. I need some help.
Thanks in Advance !
Please check all this configuration in your device before you run your app into your physical android device
Enable Unknown sources toggle in settings so it will allow you to install apk which are not downloaded from google playstore
Enable USB Debugging toggle in settings which will allow you to install and debug by USB
once done unplug device and plug again so it may ask you for sha key confirmation which you need to confirm on plugin device
after that try to run app on your device , which will show you small dialog with timer of 10 seconds to allow to install .. if you miss it then it will automatically reject and show you error that you are facing
I am using unity addressables for on-demand packs and also using google instant play plugin to build an instant app. I am using the unity's Build Settings -> Build and Run with my device connected. I have developer debugging enabled and the device is connected via usb. The aab file is built and saved on my local machine and when the build completes, nothing happens on the device. Shouldn't the game just start on the phone? When I search the phone, the app is also not anywhere to be found.
Any solutions?
So here is more of a workaround for this problem. The real solution needs to come I believe from either Unity or Google teams.
FIX:
Go to File -> Build settings -> player settings
Change the Company Name: com.yourname.currentname (to something else). Let's say: com.yourname.currentname2. And do the same for the packagename under "Other Settings".
Build and Run (having the device connected via USB and USB debugging enabled)
It should work. If still doesn't, make sure you uninstall your game (assuming you had it installed before on the device). If not installed, install it from the google play store or from an older apk, open the app info and clear all cache and data. Then uninstall it. Try the above steps for the fix.
On my side, I already had a published google play store app and now building an instant app for the same build. I uploaded a few instant app versions on the play store and installed them on the device. At that point I am not sure how google play handles the different versions (installed and instant one) and something terribly gets messed up. Is it caching some files somewhere? So aiming at a clean state is the key.
Recently I bought a new computer and installed Android Studio on it. I transferred all te files necessary from my old computer so I could continue my work on my app.The code was built and ready to upload to my device, but I got the message ' INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES', and Android Studio advised me to uninstall my app from my phone and try again.Whe I tried this, I noticed the 'delete' button was greyed out, and in Settings -> Apps -> TestApp (name of my app) I noticed the buttons for 'Force quit', 'Move to SD-card', and 'Clear Cache' were all greyed out.Is there anything I can do to make my phone delete my app, and to enable these functions in the future?EDIT: after running adb uninstall mypackagename I got the result Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]. My app uses the Device Policy Manager for locking and unlocking the phone.
SOLVED: After looking up the error code, I found the solution here at StackOverflow.
Thank you very much everyone!
Try this command from adb, after connecting your phone to pc in usb debugging mode
adb uninstall yourapppackagename
Package name you can see from the app info in the phone or packageid from your app gradle file
After running adb uninstall mypackagename like Umar Hussain pointed out, I got the result Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]. My app uses the Device Policy Manager for locking and unlocking the phone.
After looking up the error code, I found the solution here at StackOverflow.
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"
}
Is there a way to install an application I'm in the middle of development on to my phone without going through all the steps of signing it, releasing it etc.? (Without the phone being connected by USB)
I'm still very much mid-development, but I need to demonstrate the progress I've made so far to other members of my team away from access to my development environment, so I need to install it on my phone.
Inside your project bin folder there is an apk file. If you copy that file to a device you can then install the app from it.
When I am in your situation I throw my apk into dropbox and send out links for people to download it.
You can try adb wireless http://www.helloandroid.com/content/connect-your-android-phone-adb-wireless
But i don't really see why you cannot export and install an unsigned app?
At&t (and possibly other carriers) set up the firmware to prohibit sideloading, so you need USB connection if that is your carrier. Otherwise, just put the apk on a web site and enable installation from unapproved sources.
See for the purpose of debugging you can use the adb-wireless which provides the same functionality as the use of a USB.
Also for installing it on the phone directly you can try this and see if this helps.
Go to Settings -> Applications
Select the Unknown sources option. This allows you to install apps on your phone even if the app is not released into the Android Market.
If you are using Eclipse or any other IDE just click on the project and run as android application. The app shall get installed directly. ( Installation shall not depend upon whether you are using adb-wireless or a USB)