android-fat-aar icon indicating copy to clipboard operation
android-fat-aar copied to clipboard

Could not get unknown property 'packageReleaseResources'

Open Ewg777 opened this issue 9 years ago • 9 comments

Error:FAILURE: Build failed with an exception.

  • Where: Script 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle' line: 114

  • What went wrong: A problem occurred configuring project ':app'.

Could not get unknown property 'packageReleaseResources' for project ':app' of type org.gradle.api.Project.

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"

Ewg777 avatar Nov 15 '16 11:11 Ewg777

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..

adwiv avatar Nov 15 '16 12:11 adwiv

3.2 and 3.1

Ewg777 avatar Nov 15 '16 12:11 Ewg777

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

How to config this plugin for this case?

Ewg777 avatar Nov 15 '16 12:11 Ewg777

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

adwiv avatar Nov 15 '16 13:11 adwiv

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

Ewg777 avatar Nov 15 '16 13:11 Ewg777

Then maybe you do not need this script.

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

adwiv avatar Nov 15 '16 13:11 adwiv

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

Ewg777 avatar Nov 15 '16 13:11 Ewg777

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

08carmelo avatar Mar 02 '17 06:03 08carmelo

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

zhangyunpenggithub avatar Sep 24 '17 15:09 zhangyunpenggithub