Recently, I had to add only a compile time dependency for my Android project. Finally, I figured out how to do this with gradle this way , and my project compiles fine. But compile-time dependency does not seem to be in the way of Android Studio classes, so Android Studio cannot resolve class characters, and autocomplete doesn't work.
To be specific, Android Studio cannot parse this and add the necessary dependencies to its class path:
libraryVariants.all {
variant -> variant.javaCompile.classpath += configurations.providedlibs
}
In Intellij, you can do this with an idea plugin:
idea {
module{
scopes.PROVIDED.plus += configurations.providedlibs
}
}
Is there any way to do this in Android Studio?
, Intellij, . :
" " " "