We just need to add the custom components of XML
Android.support.v4.widget.swiperefreshlayout is changed to:
androidx.swiperefreshlayout.widget.SwipeRefreshLayout
At the same time, the most important thing is to rely on it. This will not be reported wrong. I found it only after looking for someone else’s blog
implementation ‘androidx.swiperefreshlayout:swiperefreshlayout:1.0.0’
Read More:
- Error inflating class android.support.v7.widget.SearchView
- Android error reporting: error inflating class android.webkit.WebView
- Error inflating class in WebView in Android 5. X android.webkit.WebView Solutions
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- [solved] not found android.support .v7. internal.app.WindowDecorActionbar
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Error: package android.support.annotation Does not exist
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- [error record] kotlin code compilation error when Android studio compiles (process @ nonnull parameter when upgrading support library)
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Android Studio – add configuration for Android studio
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- When Android Studio runs the app, it prompts Error: Please select Android SDK
- error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not