There is one and only one way to get "abs".
Lose weight.
That is to say, reduce body fat. The overwhelming way to lose weight is to cut carbs from your diet. If you want abs, that's all there is to it.
And, of lesser importance, basically reducing your calorie intake - eating well.
As they say "fat loss happens in the kitchen only".
Regarding doing aerobic exercise - for example, say you run for 90 minutes each and every day. That will use a tiny amount of calories, which may help with your diet. (NOTE HOWEVER that aerobic exercise literally makes you hungry ... so it can very much hurt your efforts to slash carbohydrate intake.)
Regarding weightlifting, it has essentially no connection, whatsoever, to eliminating body fat. I'd just forget it for a couple of years until your abs look great, ie, you have a low body fat percentage.
Getting "abs" is simply about slashing your body fat percentage. You do that overwhelmingly by slashing carb intake from your diet. "Fat loss happens in the kitchen only"
In the first instance, it goes without saying you have to absolutely totally eliminate bread, pasta, rice and potatoes from your diet - simply, never again in your life allow these to pass your lips.
(It's totally self-evident that you cannot, of course, ever eat candy, chocolate, cake, sodas, fruit etc. - zero sweets.)
Aim for 70-100 grams of carbs a day in the first instance. You'll see incredible abs in as little as a year or two.