diff --git a/Android.bp b/Android.bp index 99a8def837f66..e0e5ed966e4c3 100644 --- a/Android.bp +++ b/Android.bp @@ -614,11 +614,9 @@ gensrcs { "soong_zip", ], - // Append protoc-gen-javastream tool's PATH otherwise aprotoc can't find the plugin tool - cmd: "export PATH=$$PATH:$$(dirname $(location protoc-gen-javastream)) " + - "&& mkdir -p $(genDir)/$(in) " + + cmd: "mkdir -p $(genDir)/$(in) " + "&& $(location aprotoc) " + - " --plugin=protoc-gen-java-stream=protoc-gen-javastream " + + " --plugin=$(location protoc-gen-javastream) " + " --dependency_out=$(depfile) " + " --javastream_out=$(genDir)/$(in) " + " -Iexternal/protobuf/src " +