Tag Archives: android study

[Solved] Failed to resolve: com.serenegiant:common:1.5.20

When using an appcloud project composed of multiple import modules, failed to resolve: com.se appears after the operation UI on the tablet side of the project is imported and synchronized renegiant:common : 1.5.20 find for many days can not solve, but today found the corresponding solution, record the first time to solve the bug excited, pro test effective.

Solution:

1. download the required common package

2. Set up an AARS folder in the root directory of the whole project, and unzip the downloaded common package and put it in it

After adding the folder and common package, you need to add the corresponding AAR dependency in the build. Gradle of the root directory, as shown on the right side of the figure above.

3. AAR dependency code to be added

//Adding aar dependencies
flatDir {
    dirs '../aars'
}

4. Set in build.gradle of the module to be referenced

implementation(name:'common-1.5.20', ext:'aar')

And note the previous code about the package, such as

implementation('com.serenegiant:common:1.5.20') {
    exclude module: 'support-v4'
}

Or

api “com.se renegiant:common :${commonLibVersion}”

5. After modification, synchronize the whole project, and then the problem is solved.

Failed to resolve: com.se renegiant:common 1.5.20

Then we found another more simple and effective way

1. From http://download.csdn.net/download/qq_ 38355313/12156696 download the common package you need

2. Directly put the required module into the LIBS folder

3. Add the original

implementation fileTree(include: ['*.jar'], dir: 'libs')

Change to

implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs') 

This problem can be solved, and the pro test is effective.