They both are right and can be used interchangebly. However there is a small difference.
Lets say you spent 10 years of your life in Paris and then moved to Lille, when you go back to Paris you can tell someone that you have lived there for 10 years. This may or may not mean that you still live in Paris
But when you say you have been living in Paris for 10 years it means that you are still living in Paris and not in some other place