This is a migrated thread and some comments may be shown as answers.

Font asset not found

19 Answers 1108 Views
AutoCompleteView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 03 Jul 2019, 07:27 PM

I keep running into:
Java.Lang.RuntimeException: Font asset not found Fonts/telerikfont.ttf

When trying to access any page with an AutoCompleteView.
I'm not sure why this started happening. This used to work fine and I never had to include any sort of Telerik fonts in my project, nor do I reference any. I tried downloading the font and including it where it wanted (Assets/Fonts/telerikfont.ttf) and it still barks at me as if it doesn't see it.

 

othmane
Top achievements
Rank 1
Iron
commented on 11 May 2023, 09:34 AM

please I'm still facing the issue, I'm using RadSlideView, and when I try to navigate to the page that has it then I got this exception.
I have tried all solutions that you have put ( changing the fonts to uppercase, moving the fonts folder to the Asset folder, and putting all .ttf directly in the assets folder) both in the forms project and the android project.
I'm not sure if there any other solution for that issue because I have faced it for 6 month 

19 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 04 Jul 2019, 08:38 AM
Hi Alex,

I have tried to reproduce the exception but on my side the AutoCompleteView works as expected.

Further information

- on which devices/emulators the issue could be reproduced
- versions of Telerik UI for Xamarin and Xamarin.Forms used in the project
- when the issue observes: after the Telerik UI for Xamarin was upgraded or the Xamarin.Forms.

Next Steps:

- could you please send us a sample with the exact setup you have? In this way we could research the scenario further. Note that you should open a support ticket and attach the project there because in the forum only image attachments are allowed.

I am looking forward to your reply.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Urs
Top achievements
Rank 1
answered on 28 Nov 2019, 11:25 AM
For future googlers: it may be caused by having an assets directory named "fonts/" (lowercase), while Telerik looks for "Fonts/". Apparently, it is case-sensitive. Rename the directory and you're good.
0
Clay
Top achievements
Rank 1
answered on 24 Jan 2020, 06:41 PM
My fonts folder was already lowercase and I still got this error.  I tried uppercase but still no joy.  The only thing that worked for me was renaming my existing fonts folder to something else.
0
Didi
Telerik team
answered on 27 Jan 2020, 08:06 AM

Hello Clay,

Thank you for your input on this.

Did you try to change the fonts folder name from lowercase to uppercase - Fonts? As from the last reply https://www.telerik.com/forums/font-asset-not-found#Ik930CQMa0y0L_yKhLOeww  - this solved the issue.

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Clay
Top achievements
Rank 1
answered on 27 Jan 2020, 01:04 PM
Yes, I tried "Fonts" with only capitalizing the 'F' and it didn't fix it for me.
0
tbrentlong
Top achievements
Rank 1
answered on 31 May 2020, 02:16 AM
And five years later, this is still an issue.  The Fonts folder exists and the telerikfont.ttf file is in it, but the app randomly throws this exception.  Perhaps you should embed the font in your dlls so this can be retired.
0
Yana
Telerik team
answered on 02 Jun 2020, 06:25 AM

Hello Brent,

Actually telerikfont.ttf file is embedded in our Telerik.XamarinForms.Common assembly and you do not need to explicitly add it in order to use any of our controls. 

I would ask you to provide us more details on the issue with the font as well as the the scenario with the AutoCompleteView as currently we're not aware of any problems with it. You can open a support ticket and send us any related information/files there.

Regards,
Yana
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Christian
Top achievements
Rank 1
answered on 05 Jun 2020, 12:27 PM
I am having the same issue but i am using a different control ( Treeview ) Java.Lang.RuntimeException: 'Font asset not found Fonts/telerikfont.ttf' Using XAmarin 4.6.0.847 and an Emulator Pixel 2 Pie 9.0 API 28.

Previously when it was working we did not even have a "Fonts" folder.  How can we get the issue resolved ?
0
Yana
Telerik team
answered on 08 Jun 2020, 09:22 AM

Hello Christian,

The "Fonts" folder is not needed as the  telertikfont is embedded. 

I've tested this on various setups on Android and I haven't succeeded in reproducing the error, it seems I am missing something here. Would it be possible to send me a small repro project where the issue can be replicated?

Thanks in advance.

Regards,
Yana
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Martin
Top achievements
Rank 1
answered on 10 Jun 2020, 10:59 AM

Having the same issue. Application crashing on both autocompleteview and treeview with the same exception Java.Lang.RuntimeException: 'Font asset not found Fonts/telerikfont.ttf'. In debug and release mode with real device it is ok, but when I archive project and distribute it as an Ad Hoc then install on real device the problem appears. 

Visual studio 2019 16.6.1

Xamarin Forms tried versions 4.3.0.991250 and 4.6.0.847

UI for Xamarin R1 2020 SP (version 2020.1.218.410)

Real device - xiaomi mi2 attached logcat 

0
Didi
Telerik team
answered on 11 Jun 2020, 08:54 AM

Hello Martin,

Thank you for the provided image.

We have managed to reproduce the exception two times on Аndroid when trying to open a page that contains AutoCompleteView control. I have logged a bug report in our feedback portal. You can follow the item at the link below:

https://feedback.telerik.com/xamarin/1471353-runtimeexception-android-font-asset-not-found-fonts-telerikfont-ttf

Regards,
Didi
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Martin
Top achievements
Rank 1
answered on 11 Jun 2020, 12:08 PM

Thank you for response,

is there any simple way to workaround this? Or which configuration is not failing at this?

0
Dan
Top achievements
Rank 1
answered on 11 Jun 2020, 03:50 PM

I get the same error (Java.Lang.RuntimeException: 'Font asset not found Fonts/telerikfonts.tff") using Xamarin.Form and the Telerik PDF View (Telerik.UI.for.Xamarin).  It seems to happen in the following scenarios:

  1. If I am trying to debug against multiple Android emulators, I will get the error every time I change to a different Android emulator.  The only thing that helps is to clean the solution first, and then target the new emulator each and every time I want to target a new emulator.  This makes building and targeting other emulators a very slow and tedious process.
  2. Every once in a while, I will make a code change, and then attempt to debug on the same emulator, but I will get the same error.  When the app crashes again due to the error above, I have to clean my solution or project and then start the debug process again.

Unfortunately, this is slowing development time way down.

 

0
Didi
Telerik team
answered on 12 Jun 2020, 10:27 AM

Hi Marin, as a workaround, you can rebuild the solution and run the android project. This is the approach I used. 

Hi, Dan, I understand this issue affects your working process. I have raised the priority of the logged item and escalated it to the development team. The public item will be updated when we have more information about the issue. 

In the meantime, your patience is highly appreciated.

Regards,
Didi
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Juan
Top achievements
Rank 1
answered on 16 Jun 2020, 03:00 PM

Hi Everyone!
I'm not a Telerik user nor I have used the libraries, but this is the only place I have found a similar issue Im having with some of my projects.

It looks like at some point, android builds started failing randomly when building the font assets. I am havingthe exact same problem on 2 different projects, that are in no way related to each and neither use Telerik. The only similarity they have is that both use SKiaSharp, but this might not have anything to do.

 

Im starting to suspect that it might be an issue either with Visual Studio (im useing Windows version) or the Xamarin.Android compiler.
The only solution I find is to clean the solution and rebuild.

Hope this gives a hint.

0
Didi
Telerik team
answered on 17 Jun 2020, 09:25 AM

Hi Juan,

Thank you for your input and for the provided details.

I am pasting here the reply I posted in the feedback item we have:

"The development team researched the issue and here are more details from the research:

- We have investigated the apk and bin/obj folders of the crashing application. The reason for the observed crash is missing “assets” folder in the final packaged apk that is installed. For some unknown reasons sometimes the “assets” folder was not added to the apk. 

Based on this finding the exception could be caused by an issue in:

  - Android Build Tools
  - Gradle
  - Visual Studio

We have carefully reviewed all information provided about the crash and noticed that most of our clients reported this issue after updating the Visual Studio to 16.6.0, with version 15 the issue cannot be reproduced. 

We have researched the third option (crash when updating the Visual Studio to 16.6.0) and we have found a similar issue reported to the Visual Studio: https://developercommunity.visualstudio.com/content/problem/1045818/after-update-vs-2019-xamarin-app-debug-throws-exce.html 

From this comment: https://developercommunity.visualstudio.com/comments/1069675/view.html it seems that there is a fix on the way.

Workaround until Microsoft includes the fix: clean and rebuild the project. "

 

Regards,
Didi
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mohamad
Top achievements
Rank 1
answered on 27 Jul 2020, 11:18 AM

i have the same problem, it still after updating VS to 16.6.5.

as previous posts says, need to clean and rebuild to resolve it.

0
Didi
Telerik team
answered on 27 Jul 2020, 11:28 AM

Hello,

Please check the bug reported to the Microsoft here:  https://developercommunity.visualstudio.com/content/problem/1045818/after-update-vs-2019-xamarin-app-debug-throws-exce.html

It seems the fix for this issue is included in the VS for Windows 2019 version 16.7 preview 4

and VS for Mac version 8.7 preview 4. The fix is not included in VS 16.6.5

If you are using 16.6.5, yes the workaround is clean and rebuild the project.

Regards,
Didi
Progress Telerik

0
othmane
Top achievements
Rank 1
Iron
answered on 11 May 2023, 10:31 AM
please I'm still facing the issue, I'm using RadSlideView, and when I try to navigate to the page that has it then I got this exception.
I have tried all solutions that you have put ( changing the fonts to uppercase, moving the fonts folder to the Asset folder, and putting all .ttf directly in the assets folder) both in the forms project and the android project.
I'm not sure if there any other solution for that issue because I have faced it for 6 month 
Aram
Top achievements
Rank 1
commented on 05 Sep 2023, 10:58 AM

I can confirm this issue still exist, i get it for maui also
Didi
Telerik team
commented on 05 Sep 2023, 03:50 PM

Hi Aram,

If you have issues with fonts in .NET MAUI and these are related to Telerik controls, submit your questions to the Telerik .NET MAUI forum: https://www.telerik.com/forums/maui 

Tags
AutoCompleteView
Asked by
Alex
Top achievements
Rank 1
Answers by
Didi
Telerik team
Urs
Top achievements
Rank 1
Clay
Top achievements
Rank 1
tbrentlong
Top achievements
Rank 1
Yana
Telerik team
Christian
Top achievements
Rank 1
Martin
Top achievements
Rank 1
Dan
Top achievements
Rank 1
Juan
Top achievements
Rank 1
Mohamad
Top achievements
Rank 1
othmane
Top achievements
Rank 1
Iron
Share this question
or