There is a problem when using viewpager in XML:
error inflating class android.support.v4.view.viewpager
Solution:
Change android.support.v4.view.viewpager to
androidx.viewpager.widget.ViewPager
If there is still a red exclamation mark, just click
change to android.viewpager.widget.viewpager as prompted.
Read More:
- [Solved] AndroidStudio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- JAVA Code Start Exception Error View Does Not Exsit [Solved]
- Android solution Java.util.concurrent.ExecutionException: com.Android.ide.common.process.ProcessException: exception
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- Android studio compilation failed: java.util.concurrent.ExecutionException: com.android.ide.common.process.Process
- [Solved] android Execution failed for task ‘:app:processDebugManifest‘
- [Solved] Circular view path [index]: would dispatch back to the current handler URL [] again. Che
- Android activity Fail to Switch to androidx AppCompatActivity Error
- [Solved] Axis Failed to Import webService: No support for attachments
- [Solved] SpringBoot Error: This application has no explicit mapping for /error,so you are seeing this as a fallback
- [Solved] Error creating bean with name ‘mappingJackson2HttpMessageConverter‘ defined in class path resource
- [How to Solve] Idea prompt does not support Lombok
- Android startup page (solve the problem of starting black and white screen)
- Ali easyexcel error: org.apache.poi.ss.usermodel.font.setbold (z) V
- [Solved] Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource…
- [Solved] Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource…
- [Solved] activiti integrate error: GlobalAuthenticationConfigurerAdapter.class does not exist
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- [Solved] Failed to load class org.slf4j.impl.StaticLoggerBinder
- How to Solve Java Runtime (class file version 53.0)ERROR