App plugin id 'maven' not found

Hi!

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 build_android.sh 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?