I feel a deep sense of anxiety that my skillsets are becoming obsolete and is quickly becoming out of trend now that AI is becoming the most hottest tech.
The biggest motivation of considering a switch is:
Do you think there is a way I can leverage my experience and skills to come out on top? I'm having trouble sleeping with these thoughts and not sure if I'm crazy thinking about this tbh.
I'm hearing a couple of different things here.
The biggest one is whether this is going to be the highest-demand area. It doesn't matter if it is: you have 10 years of experience in it! There are many mainframe and Cobalt developers who are well-paid for their deep expertise, even if many would not say that work is the sexiest work nowadays. If your goal is to optimize your career growth and compensation, I would personally rather stay in Android.
I am also hearing that you have lost interest in it. If that's the case, you can explore around and see if you prefer other areas. If you do this, beware of the novelty or "shiny object syndrome", since that will wear off. You'd probably get better bang for your career buck by trying to find new applications of Android that excite you or overlapping areas. If you want to touch AI, why not find an Android role that also has some exposure to AI? That's a good way to leverage your deep expertise and seniority in Android while learning a bit more about AI in a familiar context.
Just my two cents but your anxiety may be stemming from a lack of confidence or belief in yourself. Instead of seeing it as your skills are decreasing in value, it would be better to see it as a chance to enter a new stack where you can bring all your experience and expertise to augment it. It might seem like some whiz kids are so much further ahead of you, but the reality is that it's impossible to know many things deeply. Dig a bit deeper and you'll find that those same experts will lack the skills that you've honed for many years simply because they were focused on something else-- and the thing is, they'll still need your skills and talents to accomplish whatever they're trying to achieve.