Android packaging Error: resource android:attr/fontStyle not found

Packaging for android gives me this error:

PackagingResults: Error: resource
android:attr/fontStyle not found.
PackagingResults: Error: resource
android:attr/font not found.
PackagingResults: Error: resource
android:attr/fontWeight not found.
PackagingResults: Error: resource
android:attr/fontStyle not found.
PackagingResults: Error: resource
android:attr/font not found.
PackagingResults: Error: resource
android:attr/fontWeight not found.
PackagingResults: Error: failed
linking references.

Any ideas what font and where I should check for this? My game isn’t using any font at all.

Hi der

I’ve had same problem.
Try to download any font u like and set that new font in all ur widget or text.
Delete ur intermediate and saved game folder from project directory and try to recompile.

Turns out this has got nothing to do with font.

Go to Project Settings > Platform > Android SDK

Set SDK API Level to latest, and set NDK API Level to latest.

Don’t forget to update your codeworksforandroid to 1R7u1

in \Program Files\Epic Games\UE_4.21\Engine\Extras\AndroidWorks

This didn’t work for me. I tried this yesterday.

I am considering trying this, but I am quite worried about my main project which is 99% complete and is running and packaging fine to Android in 4.19.2 (Which I think is using 1R6U1)
Should I be right to be concerned?
Will installing 1R7u1 (for 4.21) possibly screw that up?
(I have deleted my Answerhub issue as it is pretty much a duplicate).

Thanks!

I would recommend installing the new version, if your older project is not running you always install the older codeworks (if it automatically removes the old one). Also don’t forget to update your sdk config in your project settings.

Thanks jobvw!
After installing 1R7u1 (and updating the SDK config to match any changes), the blank project packaged first time in 4.21.
I then went back to my project in 4.19.2 and thankfully it packages still without a hitch! PHEW!