App plugin id 'maven' not found


I am trying to build pytorch-android from source. However, I came across this error:


I have found that shell execution is not friendly to my Windows OS, so I almost copyed the cmake command from to my cmd and finished the ‘cmake’ tasks. I am wondering if this step makes the build fail?

I have searched on the Internet that this kind of error may mainly because of not including the corresponding ‘classpath’ in the project level gradle. But I didn’t make any change to ‘build.gradle’.

Could anyone help me with this error please?