Q: How to migrate to API level > 22 in my Android app code? I am trying to migrate legacy code of my customer's Android app source code. Since i am going for API level > 22 (26 to be exact), what are my options or ways to know all the places in the large codebase, where i need to put in code explicitly for run-time permissions, without which my app crashes at places requiring 'dangerous' permissions, apart from the most basic or fundamental way (i fear) of going for manually searching almost all the activities or fragments...?

A: Go to your App Level Build.Gradle file and replace 
implementation 'com.android.support:appcompat-v7:22.1.1'

with
implementation 'com.android.support:appcompat-v7:27.1.1'

change target sdk as well as compile sdk version like this
compileSdkVersion 27
targetSdkVersion 27

Next change build tools version to this
buildToolsVersion '28.0.3'

Press Sync Now you are all done..
