Closed maurovanetti closed 1 year ago
The same issue occurs with Flutter 3.7.7 on the master
channel.
I have the same problem
Hi @maurovanetti @Alecsplus
I'm unable to reproduce this issue on my end. To troubleshoot this problem, I recommend switching to the Flutter stable channel, updating to the latest version of the project, and then updating the zxing submodule using the following command: git submodule update --remote
. After doing so, please attempt to reproduce the issue again.
I had the same problem yesterday. (snap version of Flutter 3.7.7
on the stable
channel)
I looked into it, and the error trace points to the standard library file memory
.
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
So, it seems like the provided/bundled version of GCC/C++ (here, version 9.*.*
) in the snap build is broken/outdated/not compatible.
"Solving" the "issue" was as simple as manually installing Flutter from their GitHub repo.
Now Flutter will use my system-wide installed GCC/C++ version. (In my case, version 11.3.0
)
"Solving" the "issue" was as simple as manually installing Flutter from their GitHub repo. Now Flutter will use my system-wide installed GCC/C++ version. (In my case, version
11.3.0
)
Thank you! This fixed the issue.
Hello, I'm getting this error while trying to build for Android. It used to work, but I cannot pinpoint easily which dependency or Flutter version triggered the issue, but I've recently switched to Flutter 3.8.0-10.1.pre on the
beta
channel.