ScrollView nested ListView or ExpandableListView has sliding conflicts and height calculation errors.

Problem description ScrollView nested ListView or ExpandableListView has sliding conflicts and height calculation errors. Cause analysis: 1. Android officially does not recommend sliding nesting. The sliding nesting system cannot determine which control the sliding event is triggered in. 2. When ScrollView nests ListView, there will also be a problem that ListView only displays one row. […]

How to resolve resource conflicts between androidx and v4 packages

1. The resource package will report the following error: Errors like (androidx.core:core:1.10.0) and (com.android.support:support-compat:24.2.0) It means that the resources are duplicated. I don’t know whether to call the one under the androidx package or the one under the v4 package. Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.10.0-runtime (androidx.core:core:1.10.0) and support-compat-24.2.0-runtime (com.android. support:support-compat:24.2.0) Duplicate class android.support.v4.app.INotificationSideChannel$Stub […]

Resolve sm2 algorithm encryption version conflict–maven-shade

Problem Description When introducing new third-party components into a maven project, the dependencies in the components may conflict with jar packages (other components) that the project’s existing components depend on. For example, the introduced bcprov-jdk15on is 1.68 and cannot cover the old version 1.51, causing conflicts. Solution Use maven-shade to repackagebcprov-jdk15on -1.68, and then introduce […]

netplan apply reports an error: Error: Conflicting default route declarations for IPv4 (default route declarations conflict, usually a machine can only have one default gateway)

Article directory background Cause Analysis Why configure a default gateway? (Transfer station from LAN to the Internet) If the device does not need to access the Internet, can I not set a default gateway? (If you only need to communicate within the local area network (LAN), you usually don’t need to set it) Background I […]

KingbaseES V8R6 streaming replication conflict classification and corresponding solutions

background According to feedback from the implementer, the following error was reported: FATAL: terminating connection due to conflict with recovery DETAIL: User query might have needed to see row versions that must be removed. HINT: In a moment you should be able to reconnect to the database and repeat your command. Obviously, the error indicates […]

Springboot project log4j and logback Jar package conflict problem

Exception information keywords: SLF4J: Class path contains multiple SLF4J bindings. ERROR in ch.qos.logback.core.joran.spi.Interpreter@24:14 – no applicable action for [properties], current ElementPath is [[configuration][properties]] Detailed exception information: Connected to the target VM, address: ‘127.0.0.1:52687’, transport: ‘socket’ SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/xx/.m2/repository/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11.jar!/org/ slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/xx/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.17.2/log4j-slf4j-impl-2.17.2 .jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: […]

Swagger conflicts with SpringBoot

SpringBoot version 2.7.15, Swagger version 2.9.2 An error is reported when integrating Swagger. The error message is as follows org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) ~[spring-context-5.3.29.jar:5.3.29] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) ~[spring-context-5.3.29.jar:5.3.29] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:357) ~[spring-context-5.3.29.jar:5.3.29] at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_382] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:156) ~[spring-context-5.3.29.jar:5.3.29] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:124) ~[spring-context-5.3.29.jar:5.3.29] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.29.jar:5.3.29] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.29.jar:5.3.29] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) […]

When POI is imported, conflicts between field types and imported types are often encountered.

The field types of the Excel columns we import when using poi import are often inconsistent with those in the entity class. //Import class public class ImportVo {<!– –> @ExcelVOAttribute(name = “name”,column=”A”) private String mc; @ExcelVOAttribute(name = “quantity”,column=”B”) privateInteger sl; @ExcelVOAttribute(name = “unit price”,column=”C”) private Double dj; @ExcelVOAttribute(name = “amount”,column=”D”) private double je; public String […]

What you have to play with maven – dependency scope, transfer, inheritance, aggregation, jar package conflicts…

One dependency scope 1.1 Range List compile: Commonly used jar packages of third-party frameworks such as jar packages that are actually used when the project is actually run are all dependent on the compile scope. Two maven transfers 2.1 The role of dependency Under the premise that A depends on B and B depends on […]