No, there is no credible evidence that Ranbir Kapoor was ever offered a role in the Star Wars franchise.
While Ranbir Kapoor is a prominent Bollywood actor with a global following, his career has primarily been focused on Indian cinema. He has not been linked to any Hollywood projects of that scale.
The Star Wars franchise, on the other hand, has historically cast actors from a diverse range of backgrounds, but they are primarily chosen based on their suitability for the roles and their ability to appeal to a global audience.
It is important to note that rumors and speculation about casting decisions in Hollywood are common, but without official confirmation from the production company or the actor themselves, it is impossible to verify such claims.