1

When I upgrade Androidx,I have a problem as below:

No pending exception expected: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.ContextCompat" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.alpha.lagouapk-hKiBdzRnFfV_fBa3ll3GWg==/base.apk"],nativeLibraryDirectories=[/data/app/com.alpha.lagouapk-hKiBdzRnFfV_fBa3ll3GWg==/lib/arm, /data/app/com.alpha.lagouapk-hKiBdzRnFfV_fBa3ll3GWg==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]

Zhubei Federer
  • 1,274
  • 2
  • 10
  • 27
Alfred
  • 11
  • 2
  • Are you using ContextCompat anywhere in your code? Also, could you please share your build.gradle file (both of them if you have two) – guipivoto Jun 27 '19 at 11:22

1 Answers1

0

The class renamed to androidx.core.content.ContextCompat, see the specs. You need to change the old references to the new ones.

m93a
  • 8,866
  • 9
  • 40
  • 58