c) missing protobuf-javalite of aarch64 dependency
3. Execution failed for task ':grpc-protobuf-lite:generateTestProto'.
> Could not resolve all files for configuration ':grpc-protobuf-lite:protobufToolsLocator_javalite'.
> Could not find protoc-gen-javalite-linux-aarch_64.exe (com.google.protobuf:protoc-gen-javalite:3.0.0).
Searched in the following locations:
https://maven-central.storage-download.googleapis.com/repos/central/data/com/google/protobuf/protoc-gen-javalite/3.0.0/protoc-gen-javalite-3.0.0-linux-aarch_64.exe
0. Enironment info
I am using
java 11
on a Ubuntu 16.04 VM1. Compile protobuf-3.5.1
grpc-java-1.15.1 require
protobuf-3.5.1
2. compile grpc-java-1.15.1
git clone https://github.com/grpc/grpc-java.git pushd grpc-java git checkout v1.15.1 ./gradlew build -x test -x javadoc -PskipCodegen=true popd
3. Issues while building
a) building doc failure
exist similar issue: https://github.com/joel-costigliola/assertj-core/issues/1403 solution: add
-x javadoc
arguments togradlew
command to skip doc generationb) error:
cannot find symbol javax.annotation.Generated
existing issue: https://github.com/grpc/grpc-java/issues/5343 solution: upgrade the version of
javax.annotation-api
c) missing
protobuf-javalite
of aarch64 dependencysolution: compile protobuf-v3.0.0-javalite manually
4. build again with
protoc-gen-javalite
specified