Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Version giving Issues on UWP and Android #42

Closed
KatruM opened this issue Jan 30, 2020 · 9 comments
Closed

Latest Version giving Issues on UWP and Android #42

KatruM opened this issue Jan 30, 2020 · 9 comments

Comments

@KatruM
Copy link

KatruM commented Jan 30, 2020

image

Could you please help me on this issue ??

@baskren
Copy link
Owner

baskren commented Jan 30, 2020

There is not enough information here to know a fraction of what is needed to diagnose this issue. Please send me a small demo project that replicates this issue and I will be happy to look at this for you.

@KatruM
Copy link
Author

KatruM commented Jan 31, 2020

Thanks for the Reply.
Here is the sample. When i used this across the platforms it gives me error in the Android and UWP Projects. FYI
image
Forms9PatchLabelIssue.zip

Please help me on this.

Thanks

@KatruM
Copy link
Author

KatruM commented Feb 3, 2020

I was Able to fix the Above issue but i am running in to another issue in release mode the content is not showing and debug mode it is showing .
Please let me know what i am missing.

@baskren
Copy link
Owner

baskren commented Feb 10, 2020

OK, @KatruM -

Please read the Getting Started Guide - specifically step 6. In the sample solution you provided, all three of your platform projects are missing the Forms9Patch initialization code. Besides being very unstable, this will also give the symptoms you are seeing as the linker will remove all Forms9Patch platform renderers without something (the Forms9Patch initialization code) telling it not to.

For the same reason, this is why Xamarin.Forms has initialization code in the platform projects as does Xamarin.Essentials and pretty much any project that makes use of platform specific code.

Having made mistakes like this myself all too often, I'm guessing there is a chance that forgetting to put the initialization code into the sample solution was an accident and there is some other problem with the solution that prompted you to contact me. Once you try adding the proper initialization code and test, let me know if you still have an issue.

  • Ben

@KatruM
Copy link
Author

KatruM commented Feb 10, 2020

Thanks will check and let you know

@baskren
Copy link
Owner

baskren commented Mar 6, 2020

@KatruM ... any news?

@ht20200101
Copy link

Hi I am still getting the errors in UWP. Please see below link containing a sample project with the issue. Using Form9patch v2.2.4. XF4.5

https://file.io/RDCpNJ

Thanks.

@ht20200101
Copy link

Note it really does not matter if initialization code is added or not. Simply adding the package results in error. No change even after adding the initialization and recompiling the project.

@baskren
Copy link
Owner

baskren commented Mar 15, 2020

@KatruM @ht20200101 - please give version 2.2.5 a try. It addressed the UWP build issues present in version 2.2.4.

@baskren baskren closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants