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

Could not get unknown property 'packageReleaseResources' #45

Open Ewg777 opened 7 years ago

Ewg777 commented 7 years ago

Error:FAILURE: Build failed with an exception.

apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
dependencies {
    embedded (project(':MyModule'))

'com.android.tools.build:gradle:2.2.2' buildToolsVersion "25.0.0"

adwiv commented 7 years ago

What is the android gradle version you are using?

Also, this script is not meant to be applied on 'app' module.. only for library projects..

Ewg777 commented 7 years ago

3.2 and 3.1

Ewg777 commented 7 years ago

App -- MyLib 1 -- -- External Lib 1

How to config this plugin for this case?

adwiv commented 7 years ago

Do you publish MyLib to customers? If yes, then it should be applied on MyLib.

Ewg777 commented 7 years ago

No, it's an internal library for my App.

adwiv commented 7 years ago

Then maybe you do not need this script.

This is only for people who release android libraries for use by other people.

Ewg777 commented 7 years ago

My App has lots of internal libs. So I need to make aars for it to speed up development.

08carmelo commented 7 years ago

Error:Could not find property 'packageReleaseResources' on project ':app'. I have the same error

zhangyunpenggithub commented 6 years ago

Error:Could not get unknown property 'packageReleaseResources' for project ':mainmodule' of type org.gradle.api.Project. Who knows how to solve this problem?