-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Adding some plugins to a Flutter module causes the whole app to fail to build #21473
Comments
I was able to build this app by changing The build had been failing due to an exception in the Kotlin Gradle plugin:
The Fluwx build script specifies Kotlin version |
Is this a tooling issue we can improve to better surface that error when building in Android Studio? cc @devoncarew @stevemessick |
Note after chatting with @jason-simmons: I think it is probably OK to ship with this issue for Add2App since, I think, the Kotlin version would be specified within the existing Android app and therefore the developer could change that just as Jason did here and they'll be OK. However, this issue could be more problematic for a standard project with a generated host app because the host app can't be edited without converting to a non-generated form. This might still be acceptable for the time being if this situation does not arise very often. However, if this situation is at all commonplace then I think we need to do something to handle generated host apps. |
okay, sounds good. Feel free to close then. My side of the issue is solved. (I just didn't see the error, because AS hid it a little better than from the command line) |
I'll leave the issue open until I'm sure the Add2App project structure changes aren't adversely impacted by this. |
|
Oh, it's just the regular YOUR_PROJECT/android/build.gradle file |
Steps to Reproduce
fluwx: ^0.1.3
in thedependencies
section.flutter packages get
while standing in the flutter_dof directory.Error:Failed to notify project evaluation listener.
)Now, technically to use this plugin I need to make some changes to the build.gradle files and such. You can see those changes here and here,
but that shouldn't matter. I think adding a dependency, regardless of whether it's used or not shouldn't prevent me from building the app.
I suspect other plugins may cause this behavior, but I haven't tested others yet.
The text was updated successfully, but these errors were encountered: