What is the difference between "provided files" and "compile"

11,327

compile includes the library in your final APK, while provided doesn't; provided is a compile-time-only dependency.

Share:
11,327

Related videos on Youtube

qryckbosch
Author by

qryckbosch

Updated on June 15, 2022

Comments

  • qryckbosch
    qryckbosch about 2 years

    In Android studio in the "module settings" in the Dependencies tab you can select a scope for your library files. What is the difference between "compile" and "provided"?

  • Siddharth
    Siddharth about 8 years
    I have compile and still the jar is not included in the apk.
  • Siddharth
    Siddharth about 8 years
    why are the names screwed up ? compile is suppose to behave like compile and provide like its being provided to the apk right ?
  • Qian Zhang
    Qian Zhang almost 7 years
    If the final apk does not include the reference package will cause the error?