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

packageReleaseJniLibs not found error #21

Closed Ohana35 closed 8 years ago

Ohana35 commented 8 years ago

After upgrading to Gradle 2.10 the following line:

embedJniLibs.mustRunAfter packageReleaseJniLibs

no longer compiles and causes an error in Android Studio. Have to comment it out to get the code to compile now

Ohana35 commented 8 years ago
screen shot 2016-04-22 at 10 54 21 pm screen shot 2016-04-22 at 10 54 11 pm
ikabar commented 8 years ago

Having the same issue.

parizene commented 8 years ago

@adwiv @Ohana35 @ikabar add this code instead of old one, tested on 2.1.0 if (tasks.findByPath('packageReleaseJniLibs') != null) { embedJniLibs.mustRunAfter packageReleaseJniLibs } else if (tasks.findByPath('mergeReleaseJniLibFolders') != null) { embedJniLibs.mustRunAfter mergeReleaseJniLibFolders }