본 가이드는 BuzzScreen 3.x.x 및 BuzzAd Benefit 2.x.x 버전을 사용하기 위해 필요한 AndroidX 관련 내용을 담고 있습니다.

Requirement


AndroidX

<uses-sdk tools:overrideLibrary="com.google.android.exoplayer2.core,
    com.google.android.exoplayer2.ext.ima,
    com.google.android.exoplayer2.source.hls,
    com.google.android.exoplayer2.ui" />

<application>
   ...
</application>

android {
  ...
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}

androidx.appcompat.appcompat.R → androidx.appcompat.R
android.support.design.R → com.google.android.material.R

Troubleshooting


WorkManager

java.lang.RuntimeException: Duplicate class androidx.work.ArrayCreatingInputMerger found in modules classes.jar (android.arch.work:work-runtime:1.0.0) and classes.jar
configurations.all {
  resolutionStrategy {
    exclude group :'android.arch.work', module: 'work-runtime'
  }
}