What Is The Use Of Apk Scope In Gradle-android?
The documentation describes apk scope as package time only dependency, so it won't be used for compilation. I cannot think of any scenario where I need something at runtime, but no
If you have a jar contains com.library.A, you can use class A by
try{
Object o = Class.forName("com.library.A").newInstance().
if(o!=null){
}
}catch(Throwable e){
}
You don't need to have it in compilation.
So you can build project faster.When you generate an apk,you can use the library as normal.
Post a Comment for "What Is The Use Of Apk Scope In Gradle-android?"