Home > Enterprise >  What exactly is runtimeOnly on androidx.appcompat:appcompat
What exactly is runtimeOnly on androidx.appcompat:appcompat

Time:10-05

I'm working with old version of appcompat, but error after migrate to androidX. implementation 'com.android.support:appcompat-v7:28.0.0' Should i use implementation instead of runtimeOnly ?

CodePudding user response:

After androidx migration your dependency would have been changed to following:

implementation "androidx.appcompat:appcompat:1.5.1"

If above is already present in your build.gradle then you can safe remove appcompat-v7 dependency.

As far as using implementation or runtimeOnly it totally depends upon dependency usage. If its usage in compile time then use implementation or if this just require in runtime use runtimeOnly.

CodePudding user response:

To get your answer please refer to the link: enter image description here

enter image description here

  • Related