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
Android build fails on Mac M1 #947
Comments
@EinatK Step 1. Use Android Studio to open the the structure will shown like below :
please right click on the Step 3. There are 2 lines you need to modify in your
First change : Hope this help !! origin post : protocolbuffers/protobuf#8062 (comment) |
M1 Mac でビルドできなくなったため変更 pauldemarco#947
@jason19970210 build.gradle is part of flutter_blue repo. |
I can't see flutter_blue in my android folder, I have it in pubsecyml. How can we fix this? Because I have an M1 Mac and still not working |
@borisllona Can you check in the External libraries in Android Studio?
|
I'm sorry but this path does not exist :(. I am using the last version in a Mac M1. |
Make sure you only open the Android folder of the Flutter app in Android Studio to get the Gradle tab on the right, not the whole flutter project. |
@sahilnagpal17 and @Hytro thank you for clarifying. I was confused which gradle file needs to be changed at first. I changed the external libraries gradle file of the flutter_blue package. Everything worked) |
Yes, worked! Thanks for the clarification |
Worked, Thanks a lot! |
I have flutter_blue: 0.7.1+1. This is what I did to get it working on M1.
To the new lines, that were suggested previously. And it all works.
|
Where can i find build.gradle of flutter_blue in vscode? |
@soubinkittiphanh use flutter_blue_plus plugin |
After "flutter pub get" - my file ".packages" and" Dart Packages(Flutter plugins )" from External Libraries disappeared. |
This issue happened in other packages as well but was fixed by them.
Please fix ASAP, package is unusable for M1 macs
Error
Flutter doctor -v
MacBook Pro (13-inch, M1, 2020)
MacOS BigSur 11.5.2
The text was updated successfully, but these errors were encountered: