revert minSdkVersion and fix gradle plugin version