To export a project with multiple skeletons into a single JSON file and a single atlas, you need to ensure that all images used by the skeletons have unique names. The error you're encountering suggests that there are multiple images with the same name, which can cause conflicts during the export process. Here are the steps you can follow:
Rename Images: Ensure that each image used in your project has a unique name. This will prevent any naming conflicts during the export process.
Use Texture Packer: After ensuring unique image names, you can use the Spine Texture Packer to pack all images into a single atlas. You can do this by selecting the "Single atlas" option in the export settings.
Export Settings: When exporting, make sure to uncheck the "Create Atlas" option for each skeleton and then use the Texture Packer to create a single atlas from all the images.
Check Paths: Ensure that the paths in the atlas file match the image paths used by the skeletons. This is crucial for the atlas to be correctly read at runtime.
By following these steps, you should be able to export your project with multiple skeletons into a single JSON file and a single atlas.