device no longer shows up on debug list - android

I use my Android phone to debug in Xamarin. I recently published one version of my app to the Play Store, so I changed the build configuration to Release beforehand.
After publishing, I changed it back to debug, but now my device no longer shows up in the list. I've made sure the configuration is set to debug and android:debuggable is true..my phone has USB debugging turned on and is being recognized by my computer, it just doesn't show up in Xamarin.

Did you install new software on your phone or laptop? New drivers? It happens allot to me too, that xamarin fails to detect my devices. Usually a pc reboot will do the trick. If not, and you are sure that your phone's settings are correct, i would suggest re-installing the newest usb drivers for your phone on your pc.

Related

Can't Debug Android Application on my Phone

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 cannot install .apk which have geneteted from AndroidStudio on my phone

As I have stated in the title I'm struggling with .apk I cannot install application on my phone I'm getting app not installed. But when installing via usb I'm able to install application on the emulator phone. It’s always showing App Not Installed on mobile phone.
When I run application via AndroidStudio to USB the application has been installed. I do not know where I should looking for issues. May be someone had the similat issue.
There are two things you can try:
First of all build your apk by Build/Build Bundles/Build APK and not just by creating apk as a side effect of simply running the app under Android Studio
Make sure no other flavors are installed on your device - sometimes devices offer "Uninstall for all users" - that's what you should be looking for.

Unable to build xamarin project to real device

I am working on a Xamarin project (Visual Studio 2017). It's working fine in the emulator when run in Debug and Release mode but I am unable to run it in a real device as Visual Studio is not showing any attached device though device is already attached and also developer option and all necessary options are active.
I am also getting the following error when I try to make an APK and run it in a real device:
app not installed, package is corrupted
There can be several reasons for your issue that you don't see the device in the VS dropdown:
You have activated USB Debugging on your device but have not trusted the computer you're connecting to. Just try to deactivate and reactivate debugging. If a dialog appears that asks is you want to trust this computer, than this was your issue.
You have configured a minimum API Level / SDK Version for your app that is higher than the API Level of your device. So just check your Android version on your device and the version you've defined as minimum in your project settings
Regarding the "package corrupt" error, I can think of the following:
You have not signed your apk before you deployed it to the device. Just building the apk is not enough. There is an "archive" menu option in the context menu of your Android app. More info on that can be found here https://learn.microsoft.com/en-us/xamarin/android/deploy-test/release-prep/?tabs=vswin#archive-for-publishing
Build it in release mode. Debug builds aren't signed. Then make an archive and distribute it (ad-hoc-mode). This will create a signed apk. More info: learn.microsoft.com/en-us/xamarin/android/deploy-test/… – Andre Kraemer

Is there a way to debug an android application on the phone without the USB connection?

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)

Android Developer - Updating an App Published in the Market

Prior to publishing my app on the market I could connect my phone via USB and run/debug the app on the phone (signed with development key). Now that I have published it on the market I find that in order to run it on my phone I have to export a signed apk and copy it to my phone's SD card and then install it. This is a hassle but even worse is that I can no longer run the app in debug mode on my phone. I have not seen anyone else complain about this so I presume I am lacking some understanding of the process. Can anyone help?
Thanks
aussieW
This means that you will need to uninstall the current application on the device in order to debug.
I just do a "run" from Eclipse as usual to debug, and I didn't need to sign anything, only when exporting the file to be published. I don't put the file manually in the phone; I have a run configuration that runs the app right on the phone via USB DEBUGGING. The catch is I can't have USB Storage AND Debugging on at the same time.

Categories

Resources