Android Miscellaneous Notes - Solve the problem that adding third-party dependent libraries causes errors in Google's dependent libraries

After adding some third-party libraries, appcompat-v7 made an error, which caused the compilation to fail.
As shown in the picture:
as shown in the picture

solution

Add the following code in the gradle.properties file and recompile.

android.useAndroidX=true
android.enableJetifier=true

insert image description here

Guess you like

Origin blog.csdn.net/weixin_44565784/article/details/100188939