The apps were debugging on my phone before, I had uninstalled the app but it didnt fully uninstall and didnt allow me to debug, So I used adb commandline to uninstall app fully. Before I used the command line, I went into apps section in my phone settings and uninstalled "Xamarin.Support" or "Xamarin.Android" in the apps section. After that any app, (tried making a new vs xamarin file) no app will debug on my android phone now.
I have tried turning Developer settings off and on, usb debugging on and off. Tried making a new vs xamarin file. All of these debug on Android simulator and on another phone but not on mine! When I try to debug any app on my phone. It builds, takes some time. and crashes immediately after starting.
I am thinking it is the "Xamarin.Support" app that I deleted of my phone that is effecting this. Please help!
The other phone that the debugging is working on, I went into their, went into apps in settings and searched xamarin. It had "Xamarin.Android API-27..." My phone also had something similar to that but I uninstalled it accidentally, and I dont know how to get it back to make it debug on my phone if that was indeed the issue.
Related
Since a few days an installed app on my smartphone is crashing. Now I am wondering if there is a way to debug an app on my smartphone not created by me. I just have the apk file, not the actual code so I guess I'm not able to run it from android studio on my device. (The debuggable flag is not set so it is false if that is important). I know I can install the apk on emulator devices but the app is running on them without problems so I need to now the problem with my smartphone in particular.
Or maybe it's possible to get at least a log file with more information to the crash from my smartphone? I already found some apps that claimed they could do but that didn't work. Does anybody have a device to my situation?
I created a simple Xamarin ANDROID App. I set up my phone to development mode and deployed my app to the phone via USB.
The app continues to work on the phone as a regular app.
I then created a Xamarin MOBILE App which was more complex. I deployed it to my android phone via Visual Studio debug mode as with my previous app and it ran perfectly. But when I attempt to run the app directly from my phone, it won’t run. The first screen partially loads without anything on it and then disappears. My phone puts a message up saying that my app keeps stopping and would I like to close the app. I make use of a file placed in Assets. Might this be an issue when not debugging from the computer?
Might there be a difference between deploying a xamarin android app and a xamarin mobile app.
A minor thing is that it has added the name ‘.droid’ to the name of my app which I would like to get rid of.
I am new to deploying apps to a phone
I have solved it thanks to your helpful prompts.
I looked at the error logs and the error was ‘FATAL’ in a mono dll. This was indirectly helpful in that I knew it wasn’t the logic in my code.
I also made the discovery that running my app directly in the emulator also failed in the same manner as on my phone. I also ruled out that it might be an issue with transferring an asset -a file the my app uses- as I bypassed using the asset.
(Running my app via visual studio in both the emulator and my phone worked perfectly.)
I then decided to re-house my forms and classes in a new template as I suspected it was corruption in some xml configuration setting that didn’t bother Visual Studio. This worked great and the app now runs stand alone on the phone (and emulator).
I am trying to develop an app using a game engine, that I build with VS2017. My phone is not recognized in either VS or the game engine, however it is recognized in Android Studio and I have been able to deploy an app to it.
I found this thread but all of these suggestions I had already done, as evidenced by the phone being recognized in Android Studio. One thing that may reinforce some sort of VS/Windows/Lineage issue is that after revoking ADB debugging authorization, unplugging and plugging the phone back in, I could never get the authorization dialog to come back to reauthorize the connection. Until, that is, I tried to deploy a test app in Android studio, and then it came back and I could authorize the connection. So, even though the device wasn't authorized it was recognized in AS, while even when it was authorized it was not recognized in VS.
The phone's OS is Lineage 16.
All other windows functions, file transfer, picture transfer, etc, work correctly.
The Samsung drivers are also installed and not just Win10.
I've set root access on the phone to both apps and adb and adb only, with no difference in behavior.
I've tried multiple cables, as well as USB2.0 and 3.0 connections on my pc. About the only thing I haven't tried is rebooting my pc, but since I already started this message I'll do that after I post.
Here's hoping someone might have an idea!!
I do testing on app that I download from Jenkins as a .apk file. I have Android Studio and I have gotten as far as connecting my Samsung galaxy S6, setting it to debugging mode and I can see a bunch of device logs coming up at the bottom of my Android Studio screen.
What I cannot figure out is how to see the logs for the app I am testing. I have tried to filter the logs by using the app name. Do I need to filter the logs using a specific file name? Maybe the file used to install the app? Is there an easy way to get the app logs from my device that I am not seeing?
You need to ensure that:
This is the debug version of the app.
Proguard isn't set up to strip out certain logs.
ADB Integration is enabled.
Sometimes, you have cycle through the USB options (For example, my LG phone needed to be in PTP mode before Android Studio picked it up)
For obvious security reasons, most apps don't want the public to access their logs.
A few days ago I just typed android:debuggalbe="true into my manifest and plugged in my phone, when I ran the app it automatically ran on the phone. Im using a mac if that information has anything to do with it, now nothing happens it won't recognize the phone, I enabled usb debugging on the phone. Is there any way to see if it is even registering? I am really getting angry at this because I've done everything the exact way it says to on the developer website and nothing works.
check your log filter.
Open eclipse android devices view(windows > show view > devices),and click any process in your device;
reBoot your phone.