Compiled version problem androidx.appcompat:appcompat-resources reference error

According to the content of the error message, it can be seen that this error is caused by the androidx.appcompat:appcompat-resources version in your project’s dependent library being incompatible with your compileSdkVersion. The error message shows that the minimum compilation version (minCompileSdk) specified in the AAR metadata file of the dependent library androidx.appcompat:appcompat-resources is 33, and […]

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 […]

Enhancing the capabilities of WebView with AndroidX

In the application development process, in order to maintain a consistent user experience and improve development efficiency on multiple platforms, many applications choose to use H5 technology. On the Android platform, the WebView component is usually used to host H5 content for display. Problems with WebView Since Android Lollipop, the upgrade of the WebView component […]

Compatible with all Android versions of Androidx Camera preview and image acquisition

Compatible with all Android versions of Androidx camera preview and image acquisition 1. Add reference dependencies {<!– –> def camerax_version = “1.0.0-beta06” // CameraX core library implementation “androidx.camera:camera-camera2:$camerax_version” // CameraX life cycle implementation “androidx.camera:camera-lifecycle:$camerax_version” // CameraX view collection, such as cameraview, preview, etc. implementation “androidx.camera:camera-view:1.0.0-alpha10″ 2. Add permissions to AndroidManifest.xml <uses-feature android:name=”android.hardware.camera.autofocus” /> <uses-feature android:name=”android.hardware.camera.any” […]

[Solved] Code obfuscation solution, adapted to AndroidX

Obfuscation in android Studio is basically the operation of the Proguard-rules.pro file. The process of confusion is also regular. Below I will introduce the obfuscation process in several parts. (1) How to turn on confusion. (2) Obfuscated public parts. (3) Requires code that we don’t obfuscate. (4) Obfuscation of third-party Jar packages under libs. (5) […]

[Solved] [Problem solving] Solve the conflict between Androidx and other third-party libraries when compiling

The new project in Android Studio uses the Androidx library. If the old version of the Support library is included in the third-party library used at this time, a conflict error will be reported. `Your project has set `android.useAndroidX=true`, but configuration `:app:debugAnnotationProcessorClasspath` still contains legacy support libraries, which may cause runtime issues. This behavior will […]

[Solved] Awesome databinding error solution: Could not find the class file of androidx.databinding.DataBindingComponent

This problem is caused by relying on the model. ViewBinding and dataBinding have been turned on in basemodel, but this error occurs when dataBinding is not turned on in app project You need to check whether all models using viewBinding and dataBinding in your project have the corresponding dependencies enabled. If the model used is […]