Reputation: 730
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.
Upvotes: 5
Views: 4514
Reputation: 9
I have added the preloaded_fonts.xml in value folder.. the error has gone
Upvotes: -1
Reputation: 217
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
Mistake ⛔
Delete preloaded_fonts.xml
Solution ✅
Remove the from AndroidManifest.xml
Overview 👁️
Upvotes: 1
Reputation: 20346
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.
Upvotes: 15