'Could not find apksig-7.1.3.jar in android studio

I'm trying to sync build.gradle for a flutter app in android studio but it gave this error

enter image description here

this error comes after I tried solving "ssl peer shut down incorrectly" error using the first answer in this question .

I followed all three steps of that solution but without adding the certificates and then I reconverted the steps but I remained with the same error.

Then I was trying to upgrade the gradle but it was interuppted and then the above error occured.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source