PS C:\project\GitHub\Aydi\lib> ./gradlew signingReport
./gradlew : The term './gradlew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ./gradlew signingReport
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./gradlew:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\project\GitHub\Aydi\lib>
Is there a question hidden somewhere?
Yes, the question is what is wrong with the code? Why can’t I generate the sha1?
You try to call C:\project\GitHub\Aydi\android\gradlew.bat
in your screenshot
and C:\project\GitHub\Aydi\lib\gradlew.bat
in your text.
Both of these files do not exist.
So if these directories are actually two root projects, you forgot to add the four Gradle wrapper files that should be present in any sane Gradle build.
If these directories are subprojects of your build and the root project is at C:\project\GitHub\Aydi\
, so the Gradlew wrapper at C:\project\GitHub\Aydi\gradlew.bat
, then you of course need to use ../gradlew
when you want to call it from the subproject directory.
That is probably more a PowerShell usage question, not so much a Gradle question.