Android Build Not Working

I’ve added cesium to my android project, and whenever I build, I get a ton of cesium shader errors:
Plugin ‘Packages/com.cesium.unity/Plugins/iOS/____’ doesn’t have CPU architecture set, since it’s a native plugin, valid architecture is required, skipping.
This causes cesium tiles to not show up at all in the build.

Hi @lem_person, welcome to the community!

Can you please share more information about your setup? For example:

  • What versions of Cesium for Unity and the Unity Editor are you using?
  • How did you install the plugin? Did you download from Github? Or did you install using the Package Manager?

These details can affect installation and compatibility, so please let us know. Thanks!

Hello, thank you for responding!

I used 2023.2.18f1 for the unity version, and Cesium version 1.12.0. I installed it using a scoped registry, which was through the package manager.

I just tried Unity 2023.2.18f1 and Cesium for Unity v1.12.0, and was able to package the Cesium for Unity Samples project for Android successfully. Can you try that project, and see if it works for you? That will help narrow down where the problem lies.

Oh hang on, sorry, I do see messages similar to the ones you saw. However, they are warnings, and they don’t break the build (skipping the iOS binaries is the correct thing to do in the Android build). When I run the built APK on my Pixel 6 Pro, tiles are loading successfully.

If the tiles are not loading successfully in your project, check the following:

  1. Make you’re targetting ARM64, not ARMv7. ARMv7 is a 32-bit architecture, and Cesium for Unity doesn’t support any 32-bit architectures.
    image
  2. Make sure your application is configured to require Internet Access:

Oh, I’ve fixed it. It seems that I removed a package which in return messed up the URP shaders.