android-fat-aar
android-fat-aar copied to clipboard
why it accurs error ?
Error:Could not find method compile() for arguments [configuration ':embedded'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
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'
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 :
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?
有人解决吗
我也遇到了,有人解决了吗