The most important things banks look for in granting credit is
1. steady income to make sure the bank gets paid
2. Good credit rating, record of consistently paying your credit car debts on time
Getting a regular paying job is essential.
For those who don't have a credit history, some banks will create a credit card account history by having you deposit an amount say $300 into a savings type account hooked up to debit card that allows you to develop good budget/credit card management skills that the bank then uses to assess your credit worthiness.
Then after a period of time where you've made sure to pay the minimum amount in creating confidence with your bank to soon extend a small line of credit say about $300 that you faithfully pay on time without exception so on and so on and so on.
I used this method over the years always faithfully
and without exception to build a total credit line
of many thousands of dollars.