Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

Could not set unknown property 'isEnabled' for PlayPublisherExtension #817

Closed tkhduracell closed 4 years ago

tkhduracell commented 4 years ago

Documentation states that isEnabled is to be used to disable/enable for variants/flavors, but does not accept this value.
https://github.com/Triple-T/gradle-play-publisher#disabling-publishing

I get this error: Could not set unknown property 'isEnabled' for PlayPublisherExtension

This is the correct attributes.

    playConfigs {
        register("prodRelease") {
            enabled = true
        }
    }

and

play {
    enabled = false // Disable by default
    ...
 }

Version id 'com.github.triplet.play' version '2.7.5'

SUPERCILEX commented 4 years ago

Can you do a find f for isEnabled? Seems like you have an erroneous one.

SUPERCILEX commented 4 years ago

Oh, and you're using the groovy script, right?

tkhduracell commented 4 years ago

I use the default gradle build for Android.

On Thu, Jun 4, 2020, 20:58 Alex Saveau notifications@github.com wrote:

Oh, and you're using the groovy script, right?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Triple-T/gradle-play-publisher/issues/817#issuecomment-639054605, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHV7H3DDHNSJPBJCFEI45LRU7VENANCNFSM4NSNNFSQ .

SUPERCILEX commented 4 years ago

Ok. Do you have isEnabled anywhere in your file? The error message means you do as I understand it. Also, try this:

playConfigs {
  prodRelease {
    enabled = true
  }
}
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Shusshu commented 4 years ago

after using the snapshot 3.0.0 I have this problem....

SUPERCILEX commented 4 years ago

See https://github.com/Triple-T/gradle-play-publisher/issues/827#issuecomment-651392330