jsmarcus / Iconize

Use icon fonts in your Xamarin.Forms application!
Other
204 stars 70 forks source link

Not working on Android #140

Open tezine opened 5 years ago

tezine commented 5 years ago

I, I'm using Xamarin Forms 3.6.0.264807 with Visual=Material enabled and Android Target API=28. I followed the instructions you mentioned, but no icons are displayed and no warnings in debug. Tried with fontawesome and material. None worked. Using version 3.5.0.123. Any regressions for this version?

Jsberry92 commented 5 years ago

@tezine Was having this issue at first as well.

Went to the Properties of the Android Project and set the Compile to target Android 9.0, as well as setting the target version to 28 in the manifest.

arantessergio commented 5 years ago

I have a similar problem, I facing this error in Application output:

Could not load image named: {0}: fas-address-book [ResourceType] No package identifier when getting value for resource number 0x00000000 [BitmapFactory] Unable to decode stream: java.io.FileNotFoundException: fas-address-book (No such file or directory) [ResourceType] No package identifier when getting value for resource number 0x00000000 FileImageSourceHandler: Could not find image or image file was invalid: File: fas-address-book

And here is my xaml:

`

</ContentPage.ToolbarItems>`

My XF version is 3.6.0.293080 And Iconize Version is 3.5.0.123

I updated my Target Android Version to API 28, but no change 😕

Jsberry92 commented 5 years ago

@arantessergio Did you also add Xam.Plugin.Iconize.FontAwesome?

arantessergio commented 5 years ago

@Jsberry92, I added this plugin too, I also tried add the referred plugins (Xam.Plugin.Iconize & Xam.Plugin.Iconize.FontAwesome) in Platforms projects, but no positive results.

kakoskin commented 5 years ago

3.5.0.112 and targeting android API version 27 seems to work. If I update to 3.5.0.123 then font awesome icons do not work.

Almost everytime I update this nuget something breaks so I'm not updating anymore 😅

Wallysantos commented 5 years ago

I'm also facing this problem with android version. Since version 3.5.0.115 I need to keep my android project in the version 114 because after that it not load the icons anymore. I'm using just font awesome and awesome pro.