First came the complex tools. Things like sewing machines, etc. They decimated the moderate end crafting jobs by letting poorly trained people do moderate work. But this created tons of cheap, moderate clothing, books, etc, More wealth led to better lives and more jobs. With stuff so cheap, people ended up buying far more and industries developed about owning so much (libraries, high fashion clothing). We began to need repetitive tasks, rather than skill. While a small percentage of people suffered, the far majority ended up better off.
But one of the new industries created by complex tools is engines.
The engines - steam and internal combustion - destroyed the market for physical labor. But they created huge markets to build, repair, run the machines and new industries such as cross country/ocean transportation. Again a small percentage of people suffered and the far majority ended up better off.
The engines gave us so much raw materials that we could created electronics and mechanized factories. They decimated the need for repetitive mechanical tasks. Horrible factory jobs vanished, replaced by better jobs. Again a small percentage of people suffered and the far majority ended up better off.
Again new industries were created. Among them, computers - the more advanced form of electronics. This destroyed the need for repetitive data processing. But more creative, better jobs were created. Again a small percentage of people suffered and the far majority ended up better off.
There will always be new jobs to be had, because jobs are NOT a limited resource. There is no set number of jobs, they are determined by the work we want done. The more work we can do, the more we want done.
More that that, we have already outlawed slavery. Any AI sufficient to replace the truly creative work (note, I am not including TV Reality show producer/writer/actor in truly creative work or many pop musicians ) would demand equality and pay.
The robot uprising would never occur because the labor unions would demand they get that equality and pay. They would do it so damn fast it would shock you.
Before you know it, the robots would be on strike, demanding 'oil breaks', and insisting that a Class 1 Electrician robot not be allowed to change a light bulb, because that requires a Class 2 Janitor robot.