Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Plugin does not find 'aar' packages defined in local m2repository from android #18

Open
fzymek opened this issue Jan 12, 2017 · 3 comments

Comments

@fzymek
Copy link

fzymek commented Jan 12, 2017

I need to create offline re./pository for android project. It relies on eg. multidex support.
Running syncRemoteRepositories task fails with message:

[syncRemoteRepositoriesResolve] :::: WARNINGS
[syncRemoteRepositoriesResolve]                 module not found: com.android.support#multidex-instrumentation;1.0.1
[syncRemoteRepositoriesResolve]         ==== BintrayJCenter: tried
[syncRemoteRepositoriesResolve]           https://jcenter.bintray.com/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.pom
[syncRemoteRepositoriesResolve]           -- artifact com.android.support#multidex-instrumentation;1.0.1!multidex-instrumentation.jar:
[syncRemoteRepositoriesResolve]           https://jcenter.bintray.com/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.jar
[syncRemoteRepositoriesResolve]         ==== MavenRepo: tried
[syncRemoteRepositoriesResolve]           http://repo1.maven.org/maven2/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.pom
[syncRemoteRepositoriesResolve]           -- artifact com.android.support#multidex-instrumentation;1.0.1!multidex-instrumentation.jar:
[syncRemoteRepositoriesResolve]           http://repo1.maven.org/maven2/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.jar
[syncRemoteRepositoriesResolve]         ==== maven: tried
[syncRemoteRepositoriesResolve]           -- artifact com.android.support#multidex-instrumentation;1.0.1!multidex-instrumentation.jar:
[syncRemoteRepositoriesResolve]           file:////Users/filip/Library/Android/sdk/extras/android/m2repository/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.jar
[syncRemoteRepositoriesResolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve]                 ::          UNRESOLVED DEPENDENCIES         ::
[syncRemoteRepositoriesResolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve]                 :: com.android.support#multidex-instrumentation;1.0.1: not found
[syncRemoteRepositoriesResolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve] 
[syncRemoteRepositoriesResolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
:app:syncRemoteRepositories FAILED

task configuration is as follow:

syncRemoteRepositories {
    repoRoot "$projectRootDir/libs-repository" //define location of offline repo

    repositories {
        jcenter()
        mavenCentral()
        maven {
            url "file:///" + System.getProperty("ANDROID_HOME") + "/extras/android/m2repository"
        }
    }

//    configurations 'compile', 'testCompile' //Restrict the configurations you would like to have added to the synchronisation process. If none are supplied, dependencies from all configurations will be added.

    includeBuildScriptDependencies = true
}

It seems that it tries to find multidex-instrumentation-1.0.1.jar instead of using multidex-instrumentation-1.0.1.aar

@ysb33r
Copy link
Owner

ysb33r commented Jan 13, 2017

Can you post your dependencies block ?

@ysb33r
Copy link
Owner

ysb33r commented Sep 30, 2017

@fzymek Do you have any info for this? Maybe you can point me to a project that tried this?

@realPyR3X
Copy link

Seems to be the same problem I'm having. It's when the extension is not a jar and there is a classifier to specify it i.e. @zip or @aar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants