Android forms previewer renderer instead of the usual preview - c#

I just created a mobile app with xamarin.forms and I wanted to start, by making the navigation of the application. Upon creating a content page the previewer ends up not showing anything, apart from a text saying:
Android forms previewer renderer instead of the usual preview.
I'm using Visual Studio 2019 and I have the nugets all updated.

After trying a bunch of stuff I ended up creating like 5 or more projects and somehow the previewer on the last on is working but on the other ones it just ain't.

Related

Xamarin Android app splash screen not working

I am learning the android development in visual studio 2022.
when i creating a splash screen, it splashes default Xamarin logo. can some have a look at the code and guide me with resolving this issue.
(https://i.stack.imgur.com/M3BKe.png)](https://i.stack.imgur.com/LHIuV.png)](https://i.stack.imgur.com/CV6O6.png)](https://i.stack.imgur.com/hMaA7.png)
i have tried lots of combinations available online like adding image path in splash.cs. it works but it was not full screen image, rather a very small image.

project built succesfull in Unity and installed on android but doesn't run properly

I created an app in Unity where you get a start screen with some GUI elements: a top bar with some title graphics and a scrollView with buttons that load dynamically using c# and xml that allow me to active canvases depending on the pressed button... this all works perfectly when I run it on pc but when I try to install it on android, it only shows the "Made with Unity" animation and loads the top bar and the background.. I just can't get any gamelogic to run..
I even forced the first level to run, and it switches canvas but nothing else, no sprites loaded into the GUI images, no listviews being populated, nothing..
I then tried to load a canvas that should be able to search for levels/chapters with an inputfield and then display all chapters that contain that text.. I can select the inputfield, the onscreen keyboard appears and I can type text, but again, the list isn't being populated..
I did have a lot of trouble getting the app to build (commandInvocationFailure, ..) and searched the web for every error I got and kept getting new errors untill I found a "sweet spot":
Unity 5.6
SDK that came with newest Android Studio
Downgraded tools in SDK to version 25.2.5
Had to copy zipalign.jar from build-tools to tools
downgraded JDK from 9.1 to 8.1
install location "automatic"
this allowed me to build my app but it's extremely fragile, one wrong setting and it won't build..
I'm trying to run the app on a Samsung Galaxy Tab4 (Android 5.1 Lollipop) I installed the proper API with SDK Manager but when I set the API level in Unity I can only select "highest installed" or it won't build. I tried installing on a Samsung Galaxy Tab A (Android Nougat) but there I get a "Not Installed" message.. (third party sources is checked)
The build itself is quite large (1.7gig but has over 3000images and sounds which I downsampled so all resources are around 500MB)
(the entire app is made out of GUI elements)
anyone who encountered this problem or can shed some light on what I'm doing wrong?
Found the answer: app depends heavily on xml and adressing an xml file on android is different than on a pc.. so app worked but couldn't find the xml so no data was loaded..

UWP XAML editor doesn't work

When I create UWP or windows phone project and try to edit a page in xaml, no visual changes displayed in the editor - it just stays empty. However, borders of selected element are displayed. So it can be defined that editor processes layout right, but displays no visual part of elements.
The problem occurs on visual studio 2015 proffesional, and also vs 2017 community. So I think problem is not related to IDE, maybe something wrong with SDK.
Hyper-V is enabled if it makes any difference.
Tashiu,
Set the
project properties
->Application
->Target version to Windows 10(10.0;Build 10240),
the design view shows up again.

How can I find Xamarin.Android v4 Support in my Properties?

I'm watching a Xamarin tutorial on YouTube https://www.youtube.com/watch?v=6Jx7ZNZL9dk&list=PLCuRg51-gw5VqYchUekCqxUS9hEZkDf6l and I've hit a brick using Visual Studio.
I've successfully downloaded Xamarin and Xamarin Android Player for the phone emulators.
However, in the video, it tells me to change the Minimum Android Target to one of the many Xamarin.AndroiD v4.1 Support options. I have not got any of the Xamarin options in my drop down list.
This dropdown menu in my Properties
Perhaps I haven't installed something that enables the Xamarin options to be visible. Help, please
You need to install the other API levels that you want as your minSdkVersion inside your Android SDK Manager to see more in this dropdown. https://developer.xamarin.com/recipes/cross-platform/ide/launch_sdk_manager/#Launch_SDK_Manager_from_Visual_Studio

Xamarin Android Debugging errors

I am repeating a question posed on Xamarin forums by another user as there has been no solution (http://forums.xamarin.com/discussion/37139/debug-chaos). Since the update to Xamarin at the start of April.
I'm facing very strange debugging errors using Xamarin Studio.
1) Set a breakpoint in the IDE and it stops at the breakpoint with a nullreferenceexception, even when the breakpoint is set on a curly bracket of a function.
2) Move the breakpoint by 1 line and the nullreferenceexception will occur there instead.
I have tried to enable/disable fast deploy and mono shared runtime without changes, and fully reinstalled Xamarin Android and Xamarin Studio.
Any ideas? It's very frustrating to not be able to debug.
Update: Xamarin Studio v5.8.2, Xamarin.Android v4.20.0.37, Nexus 7 (2013) running Android 5.0.2
it is a related to drawable images problem, please do try it that remove image from layout file and then run application as same configure it will be run successfully.
this type of problem i face at staring but now i have the solution to how to handle it.
setting android images and icon is perfect hierarchy which is mention below images and also update your SDK.

Categories

Resources