Your best option would be to fix the use of deprecated APIs. However, an option would be to add the @SupressWarnings("deprecation") annotation to the classes or methods that are using the deprecated APIs.
Shweta, it's not going to help if you don't fully read the replies and provide relevant answers for the questions. Please read my previous post again and post what's asked for. We might have more questions later on, to see why it isn't working, this is just a start.