android-fat-aar icon indicating copy to clipboard operation
android-fat-aar copied to clipboard

why it accurs error ?

Open sdliuxu opened this issue 7 years ago • 5 comments

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

sdliuxu avatar Jan 18 '18 09:01 sdliuxu

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'

Jaroslav84 avatar May 02 '18 16:05 Jaroslav84

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 :

richfuns avatar Jun 08 '18 06:06 richfuns

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?

JerryCui avatar Nov 15 '18 12:11 JerryCui

有人解决吗

userLikun avatar Oct 13 '20 10:10 userLikun

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

hyhdy avatar Apr 26 '21 10:04 hyhdy