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

Error:Could not get unknown property 'prepareReleaseDependencies' for project ':someLib' of type org.gradle.api.Project. #84

Open LSDsl opened 6 years ago

LSDsl commented 6 years ago

Error:Could not get unknown property 'prepareReleaseDependencies' for project ':someLib' of type org.gradle.api.Project.

What is wrong?

TTKatrina commented 6 years ago

Use "compile" or "provided" instead of "embeded" may resovle your problem.

LSDsl commented 6 years ago

Ha-ha.. I use this lib to embeded aar. Not compile or provided )

P.S. Fix this by downgrade from AS 3 to AS 2.3.3

TTKatrina commented 6 years ago

here is the same question: https://github.com/adwiv/android-fat-aar/issues/45

AvivVegh commented 6 years ago

Still doesn't work on gradle 3.0, is it work to someone ?

Soloer commented 6 years ago

can't work on gradle 3.0?

zhpanvip commented 6 years ago

same error with you

mfdeveloper commented 6 years ago

I've "fixed" this downgrading gradle to 3.3 version on gradle-wrapper.properties file, and change the dependencies on build.gradle file, like the code snippet below:

dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'
}
kolyneh commented 6 years ago

Hi, I've "fixed" this downgrading gradle to 2.14.1 version.

gradle-wrapper.properties : distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

build.gradle dependencies { classpath 'com.android.tools.build:gradle:2.3.3' }

yihongyuelan commented 5 years ago

Hi, I've "fixed" this downgrading gradle to 2.14.1 version.

gradle-wrapper.properties : distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip

build.gradle dependencies { classpath 'com.android.tools.build:gradle:2.3.3' }

You are right, I'v tried to fix fat-aar error code and compile with new gradle version 4.x. Opps, Failed again and again, so I create a simple AndroidStudio project, just merge all FUCKING aar files with lower gradle version.

https://github.com/yihongyuelan/android-MergeAAR