-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Build Failed with Exception, error: cannot find symbol #871
Comments
Afraid not. This looks like the sort of error that should fail for everyone but worked fine whilst I was testing and passed CI as well. Do you have the same issue if you clone the repo and run the example app? |
I doubt it'll help but this the output of when I run
As I can't reproduce this locally with the apps I've got and it isn't failing CI, I'm thinking it's environmental but if you've already tried cleaning up your pub cache then not sure what other option there is. Might be worth trying to reinstall flutter but not sure if that'll help. I know it's helped others in the past that I'm guessing is to do with a corrupt pub cache |
Thanks @MaikuB for the quick response. I noticed you are running on OSX so I dropped the project over to a Mac and it ran fine. I keep everything the same on both machines but for some reason its failing on Windows. I guess something must be out of sync. I'll keep probing and post any results. |
Shouldn't matter if it's windows or not though for something like this. In fact, I ran the example app on windows as well and it was working fine |
I agree it shouldn't. I was building for iOS though so I'll also test for Android. In the interim I reinstalled Flutter SDK, updated plugins, ran pub cache repair all to no avail. I started testing different versions. All build fine up to and including 3.0.0+1 but then fails at 3.0.1 when |
As I can't reproduce this then it's not something I can look into. Your best bet is to probably fork the repo and try to compile it to see if and why it shows an error for you to see if it is indeed something that can be fixed |
Yes as @cormalenv said, build failing with exception after upgrading to 3.0.1. |
@Gowthamsubramaniam94 remove the caret |
@cormalenv Thanks. I removed the |
I suspect this has to do with the AndroidX dependencies that your apps are specifying. Have either of you run into the issue with the example app? If you run into the issue then please provide a link to a repo containing a minimal app that reproduces the problem |
I believe this should be fixed in 3.0.1+1 now |
Hmmn, sorry @MaikuB. Same issue as below although only one error now. I'll try to get some time tomorrow to develop minimal code. Thanks.
|
Ok looks like I missed that one. Fix to come shortly but yeah a repro sample would be great. I suspect it's to do with the androidx.core dependency as only more recent versions had gotten that channel methods added to |
This should be fixed now but still be good to get a repro sample |
As per title build failing with exception after upgrading to 3.0.1. Flutter clean, invalidate caches, sync with gradle all to no avail. Any ideas?
Console output as follows.
Flutter Doctor
The text was updated successfully, but these errors were encountered: