Let's say I add the following dependency to my app level build.gradle file:
compile 'com.squareup.retrofit2:retrofit:2.3.0'
How can I check at runtime that a certain dependency exists or not?
Let's say I add the following dependency to my app level build.gradle file:
compile 'com.squareup.retrofit2:retrofit:2.3.0'
How can I check at runtime that a certain dependency exists or not?
You would not be able to run the App in the first place, because if the dependency does not exist you can not build the .apk. There is no run-time checking for gradle dependencies.