When inheriting the push service, add Huawei Maven repository under buildscript and allprojects according to the document.
repositories {
google()
jcenter()
maven {
url 'http://developer.huawei.com/repo/'
} // HUAWEI Maven repository
}
However, an error is reported during gradle synchronization.
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not determine artifacts for com.huawei.hms:push:4.0.2.300
Could not get resource 'http://developer.huawei.com/repo/com/huawei/hms/push/4.0.2.300/push-4.0.2.300.aar'.
Could not HEAD 'https://developer.huawei.com/repo/com/huawei/hms/push/4.0.2.300/push-4.0.2.300.aar'.
server certificate change is restricted during renegotiation