Disabling some plugins prevents cooking/packaging

Hi,

I’m working on a mobile game and I want to disable unused plugins. There are 3 plugins that are causing problems: Paper2D, OculusVR and OpenXR.

Cooking fails when I disable either of them with the errors:

Warning: '__ANDROID_API__' macro redefined [-Wmacro-redefined]
Error: ld.lld: error: undefined symbol: __aeabi_unwind_cpp_pr1
Error: ld.lld: error: undefined symbol: __aeabi_unwind_cpp_pr0
Error: clang++: error: linker command failed with exit code 1

Then, I decided I won’t disable them, but blacklist their cooked files from being packaged using “PakBlacklist-Shipping.txt”

The blacklist worked, but after deploying to the device, I get errors mentioning some files could not be found. These files are the ones from the plugins I blacklisted. Those files are:

MaskedUnlitSpriteMaterial
OpaqueUnlitSpriteMaterial
DefaultPaperTerrainMaterial
PokeAHoleMaterial

I checked, and these have no references to my game’s files in the editor. Yet, something called CDO Constructor is looking for them.

How can I get rid of these plugins and reduce my apk size?

Thanks.