adwiv / android-fat-aar

Gradle script that allows you to merge and embed dependencies in generted aar file
The Unlicense
1.46k stars 435 forks source link

why it accurs error ? #85

Open sdliuxu opened 6 years ago

sdliuxu commented 6 years ago

Error:Could not find method compile() for arguments [configuration ':embedded'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Jaroslav84 commented 6 years ago

apply xxxx order is wrong. Took me a while to figure this out.

in build.grade:

Declare first this line:

apply plugin: 'com.android.library'

Then:

buildscript {

    repositories {
        mavenCentral()
        google()
        jcenter()
        maven {
            url  "http://dl.bintray.com/vigidroid/maven"
        }

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'me.vigi:fat-aar-plugin:0.2.8'
    }
}

And Only then:

apply from: 'fat-aar.gradle'
richfuns commented 6 years ago

Could not find me.vigi:fat-aar-plugin:0.2.8. Searched in the following locations: https://dl.google.com/dl/android/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.pom https://dl.google.com/dl/android/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.jar https://jcenter.bintray.com/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.pom https://jcenter.bintray.com/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.jar https://repo1.maven.org/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.pom https://repo1.maven.org/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.jar Required by: project :

JerryCui commented 5 years ago

Could not find me.vigi:fat-aar-plugin:0.2.8. Searched in the following locations: https://dl.google.com/dl/android/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.pom https://dl.google.com/dl/android/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.jar https://jcenter.bintray.com/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.pom https://jcenter.bintray.com/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.jar https://repo1.maven.org/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.pom https://repo1.maven.org/maven2/me/vigi/fat-aar-plugin/0.2.8/fat-aar-plugin-0.2.8.jar Required by: project :

have you solved this?

userLikun commented 3 years ago

有人解决吗

hyhdy commented 3 years ago

我也遇到了,有人解决了吗