OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

gradle not able to detect protoc compiler in windows platform

  • Thread starter Thread starter Babu Reddy H
  • Start date Start date
B

Babu Reddy H

Guest
I have a gradle project. There are some sub projects under the root project. I have proto files defined in some of the subprojects. I am trying to build the project using gradle. Even though protoc is installed in my windows, gradle is not able to detect it. it throws no protoc compiler found issue while building.

This is the output of .\gradlew.bat --version enter image description here

This is the output of protoc --version

enter image description here

This is my gradle.properties in home directory enter image description here

Gradle error while trying to build. After this error build fails. enter image description here

Please suggest if I missed any configuration. This is observed only in windows. It is working like a gem in linux platform.
<p>I have a gradle project. There are some sub projects under the root project. I have proto files defined in some of the subprojects. I am trying to build the project using gradle. Even though protoc is installed in my windows, gradle is not able to detect it. it throws no protoc compiler found issue while building.</p>
<p>This is the output of .\gradlew.bat --version
<a href="https://i.sstatic.net/xQWYfaiI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xQWYfaiI.png" alt="enter image description here" /></a></p>
<p>This is the output of protoc --version</p>
<p><a href="https://i.sstatic.net/OlVY35X1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OlVY35X1.png" alt="enter image description here" /></a></p>
<p>This is my gradle.properties in home directory
<a href="https://i.sstatic.net/YUC3oBx7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YUC3oBx7.png" alt="enter image description here" /></a></p>
<p>Gradle error while trying to build. After this error build fails.
<a href="https://i.sstatic.net/65ymAyxB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/65ymAyxB.png" alt="enter image description here" /></a></p>
<p>Please suggest if I missed any configuration. This is observed only in windows. It is working like a gem in linux platform.</p>
Continue reading...
 
Top