Various redundant support libraries in Android External Libraries

The

problem is that I used RecycleView in the project, and then I introduced him, but gradle reported an error, which specifically means:

  1. The version numbers of the libraries supported by RecycleView are not consistent with those of other libraries. Other version numbers have been found, and you should use a consistent version number to avoid compilation errors.
  2. the current RecycleView version number (28.x.x) is higher than the compiled version number (26).

I tried to fix the No. 2 problem above by changing the version number of RecycleView to the same version as the current compiled version, but the first problem still exists. I tried to open the Android Studio left sidebar, External Libraries to see different version numbers, as shown below:

clipboard.png

build.gradle

supportbuild.gradle26.1.0 :


Android Studio 3.0.1Deepin linux Windows 10Android Studio 3.3 External Libraries2

clipboard.png

I would like to ask bosses, how to solve this problem, ah, I am multi-Module mode, the use of api mode introduction, will it be a problem in this respect? Solve! ~


just force the dependent version to be specified in Gradle

configurations.all {
   resolutionStrategy {
       force 'com.android.support:recyclerview-v7:26.1.0'
   }
}

change to implementation

Menu