Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why it accurs error ? #85

Open
sdliuxu opened this issue Jan 18, 2018 · 5 comments
Open

why it accurs error ? #85

sdliuxu opened this issue Jan 18, 2018 · 5 comments

Comments

@sdliuxu
Copy link

sdliuxu commented Jan 18, 2018

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

@Jaroslav84
Copy link

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'

@userLikun
Copy link

有人解决吗

@hyhdy
Copy link

hyhdy commented Apr 26, 2021

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

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

No branches or pull requests

6 participants