Does android studio have live debug like visual studio does and where - android

i have android studio 4.1.3 and i'm wondering if it has a setting that i can change so i can see debug in real time. I'm currently using visual studio which tells me in console where i'm wrong as i'm typing. I'm typing the code in vs and then pasting into android studio but it's getting tiresome especially if i have a lot of screens. Is there an easy way that i'm missing? And yes i have tried to google the question already so please don't tell me to google.

Unfortunately, android Studio does not currently have a live debug feature.
You do have a debug option on the top right corner of the screen if you need it.

The closest thing to what i was looking for is the "Dart Analysis". It's located at the very bottom next to the "terminal" button. I've tested and i see if i change something, it immediately notifies me in the "Dart Analysis window"

Related

Items Don't Display in Android Studio Blueprint or Design

so I'm trying out Android Studio for the first time, and I've already run into something. I'm following the official "first application" tutorial on developer.android.com, but it's not matching up. So, I tested this with two apps, and it wasn't like a bug in the first one exclusively, it happened in both. Here's a pic of an app where nothing has been changed and I followed the tutorial exactly:
As you can see in the hierarchy, it is supposed to have the Hello World text that displays when you make a new app. However, with me not changing anything, it's not showing up.
Any ideas?
Also to clarify, the items do show up when I run it on my device, it just doesn't show up on the computer.
Check the upper right corner of the Preview screen, you should see a red warning mark. Click on that and it will tell what is preventing Android Studio from rendering your layout.
Some times android studio stuck or something.Try doing
File->Invalidate Caches/Restart
The best solution is
Clean Project
Rebuild Project
In your style.xml file change the string parent with the below line:
parent="Base.Theme.AppCompat.Light.DarkActionBar"

Creating a Xamarin Android F# project

Visual Studio 2015, Update 3.
Create a blank solution. Choose Add New Project -> Visual F# -> Android.
Create either a Blank App (Android) or a Unit Test App (Android).
The app is created successfully.
Right click on References, and choose "Add Reference". The following dialog box pops up:
Note that when you look at the Project Properties, there are two "Application" tabs. The second one generates an error:
Once the project has been unloaded, it can no longer be reloaded. The resulting error message is:
I have reported this on the Xamarin Forums, but the process is slow. I'd like to find a workaround, but I'm fumbling in the dark. Once I've unloaded the fsproj file, I can't find any mention of "frameworkName", and I can't reload it either.
My Android settings appear to all be up to date:
Does anyone know of any workarounds that will allow me to start unit testing my existing app?
I believe I have a fix for this issue :)
Xamarin expects F# 3.x to be present, which at this point must be manually added. You should be able to download F# 3.x here
Please let me know if this fixes the issue for you.
Thanks!
Edit: I have filed the following bug as well: https://bugzilla.xamarin.com/show_bug.cgi?id=42970

Xamarin Android deployment not using the latest code?

I'm creating an Android app in Visual Studio. When I create the aligned APK to side load on my device (from the Tools -> Android -> Publish Android App), it installs and runs, but doesn't seem to have the very latest changes. The series of events I've experienced is as follows:
Installed a version of the app on my device
Updated a color on the login page and set the application theme (among other things)
Re-installed the app
Saw the new theme but not the new color on the login page
Made a random text change on the login page as a test
Re-installed the app
Saw the color change but not the random text change?!
Any suggestions on what I might be doing wrong?
I have experienced similar issues, my go to for fixing this issue has been the following
Clean all projects.
Build all projects (especially the project containing the xcml files).
Delete (remove application) from the device.
If for some reason this doesn't solve the problem, typically a full restart of Xamarin Studio or Visual Studio does.
I have a similar weird problem where old code from only a single project doesn't get updated. All other projects do get updated/deployed. It only happens on a single emulator, only in Debug mode, and only for that one project.
Cleaning+rebuilding the entire solution did not work. However, telling VS to rebuild the individual project does.
Why doesn't rebuilding the solution rebuild the project? I have no freakin' clue, but I can consistently reproduce this issue and workaround.
In my case, I had a similar problem with connected device, and no one proposed solution like Clean\Rebuild\Restart\Reinstall\etc could help me.
At the same time on the AVD everything worked perfectly, latest code deployed ok.
I found that asked issue depended on selected settings in the [USB Developer] section on the connected device (mine was Xiaomi smartphone). Because some vendors provide us with too many security settings...
What I found, you have to turn on both USB Debugging & USB debugging (Security settings), and turn off MIUI Optimization (it's true for Xiaomi vendor, but you can check your device for similar options). Hope this helps.

Trouble with Visual Studio 2015 and Xamarin (Android Development)

I need some help with the designer of the visual studio/xamarin on the android.
I'm kinda noob with development, but I was hoping to do some examples, but the designer isn't showing up...
The tutorial videos, from the Xamarin itself, only says it need to create a new project and play with the designer, but when I do that, the designer is empty and I can't do nothing...
Here some pictures from what I have and from what I see on videos:
There's a couple things I'm thinking here. It's quite possible that your installation of Xamarin didn't go according to plan. Check your detailed Visual Studio version information in "Help -> About -> Copy Detailed Info".
Additionally, you might also be running on an outdated version of the Android SDK or there might be an issue with your Java config. Ensure you've got the Android SDK installed and updated and that you're using a current version of the Java SDK.
I also see there's a white box showing up on your Designer screen. Does that ever populate with an error? Usually, that will show some info on what exactly is going wrong.
Lastly, you can also check your logs in the following directory for more hints as to what's going on:
%LOCALAPPDATA%\Xamarin\Log
I hope this helps!

Mono for Android VS2010: Cannot view layout in designer

I installed Mono for Android with the intention of using Visual Studio 2010 to design android apps. I am able to compile and deploy applications, but I am not able to view the layout designer. When I double click on an .axml file it opens in source view and there is no context menu option such as "View in designer." I am able to use MonoDevelop to create the layout, but I shouldn't have to do that.
Here are some screen caps:
Any tips?
It seems to simple but right clicking on the Main.axml in Visual Studio and select and choose Open with. Then select Android Designer should do the trick.
Despite that Android Designer can be set as Default it appears not to be working like that. I should say that's a BUG in VS and/or Monofor Android.
Are you shure to have the latest Mono for Android installed? (Version 4.2.4)
The Open With Dialog should have an entry "Android Designer".
Select this now and click "Set as Default".
Did a full uninstall, reinstall and reboot.
At first it didn't seem to have fixed it - my existing hello world project still wouldn't open the designer.
I tried creating a new project and ta-da all good now! Very odd.
I've very pleased to have gui designer. It really helps level the learning curve when learning a new platform - nice work Xamarin.
I did 3 installs until it finally took. I uninstalled then reinstalled and it still didn't work. I then just did a repair and it finally worked. Just keep reinstalling and you'll get it.

Categories

Resources