'Error:(34) error: resource array/preloaded_fonts not found

I imported a font and then decided against it, I deleted it from my files using safe usage and nothing came up, so I deleted it.

All of a sudden I am unable to build my project and I get the error mentioned.

I try to remove

<meta-data
            android:name="preloaded_fonts"
            android:resource="@array/preloaded_fonts" />

But this reappears after trying to build the project again. I have removed all references that I believed to be linked to this error but clearly, I am missing something.

enter image description here



Solution 1:[1]

There's a hint at the top of editor window:

Files under the "build" folder are generated and should not be edited

Edit manifest in the src folder, not in build folder. Alternatively you can find manifest in the app/manifests in the Project pane on the left.

Solution 2:[2]

If you create new Font without import .ttf file the system will automatically create meta-data tag in Manifest and preloaded_fonts.xml in values package

  1. Mistake ?

    Delete preloaded_fonts.xml

  2. Solution ?

    Remove the from AndroidManifest.xml

  3. Overview ??

    3.1 Create new font + output enter image description here 3.2 Fix the problem

    enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sergey Glotov
Solution 2 Mohamed Nabil Essefaihi