Skip to content
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 example compilation fails at app:generateDebugProto task #1382

Closed
vpejovic opened this issue Aug 22, 2022 · 1 comment
Closed

Android example compilation fails at app:generateDebugProto task #1382

vpejovic opened this issue Aug 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@vpejovic
Copy link

Describe the bug

Compiling the Flower Android example (available at https:/adap/flower/tree/main/examples/android ) using Android Studio Bumble Bee on MacBook Pro M1 fails at ':app:generateDebugProto' task. In addition, the MainActivity includes FlowerServiceGrpc class, which is not available in the given repository.

Steps/Code to Reproduce

Pull https:/adap/flower/tree/main/examples/android , import the client to Android Studio, and compile.

Expected Results

The app compiles without errors.

Actual Results

Execution failed for task ':app:generateDebugProto'.

Could not resolve all files for configuration ':app:protobufToolsLocator_protoc'.
Could not find protoc-3.11.0-osx-aarch_64.exe (com.google.protobuf:protoc:3.11.0).

@vpejovic vpejovic added the bug Something isn't working label Aug 22, 2022
@vpejovic
Copy link
Author

Appears to be an issue with the protoc support on M1. os72/protoc-jar#93
Installing protoc locally via homebrew and instructing gradle to fetch it from the path (e.g. protoc { path = '/opt/homebrew/bin/protoc'}) solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant