-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not get unknown property 'ReleaseStatus' for extension 'play' #885
Comments
Hmmm, looks like I need to update the docs for this. Someone else just asked the same thing: #827 (comment) |
Right I forgot, I also use the plugin block
If I simply add the line |
Invalidate caches and restart? 😝 If it works in Gradle, that's an IntelliJ problem and not related to this project. |
It doesn't solve it unfortunately |
Bummer, hopefully an update to Studio or IntelliJ will fix it. |
Note to self: also add comment about user fraction needing a d in groovy. |
I know this issue has been closed. But about the play {
......
//releaseStatus is the type of release, i.e. ReleaseStatus.[COMPLETED/DRAFT/HALTED/IN_PROGRESS]
releaseStatus.set(com.github.triplet.gradle.androidpublisher.ReleaseStatus.DRAFT)
......
} |
In gradle+androidstudio, i had to use the fully qualified "com.github.triplet.gradle.androidpublisher.ReleaseStatus.DRAFT" like you posted here. @SUPERCILEX Since import statement wasn't working for me, it would be helpful to add to the readme as part of migration to 3+ |
Even with the fully qualified name of ReleaseStatus.DRAFT as @btseytlinTCP suggested, I'm still getting an error: When I remove releaseStatus property setter, there's no issue. I tried to invalidate caches and restart Android Studio, tried to run |
@micer Perhaps your import is on the wrong fields? Example:
|
@btseytlinTCP nope, seems to be correct:
I have this in separated gradle file and added to module's build.gradle with |
i'd try
|
Yeah, for whatever reason I don't think Gradle lets you use imports outside of the build.gradle file. |
Yes, moving all to module's build.gradle works! 🤯 Thanks guys! |
For anyone having the same issue and using Triple-T plugin in We put the plugin on classpath in
To have
|
See #1039 for a proper fix. |
Describe the bug
I've recently migrated from 2.3.0 to 3.0.0 and I changed my build.gradle file accordingly going from this
to this
But when I try to build my app I am presented with the following error
Could not get unknown property 'ReleaseStatus' for extension 'play' of type com.github.triplet.gradle.play.PlayPublisherExtension.
How To Reproduce
Include the
play
closure to thebuild.gradle
file and syncVersions
Tasks executed
It fails when syncing after modifying the
play
closureExpected behavior
I would expect the sync to be successful
The text was updated successfully, but these errors were encountered: