I found that run Task :app:collectNewuatReleaseDependencies FAILED
this task seem will get all dependencies from maven repository. Howevenr the Gradle show FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:collectNewuatReleaseDependencies'.
Could not resolve all artifacts for configuration ':app:newuatReleaseRuntimeClasspath'. Could not download push-ohos-5.2.0.305.har (com.huawei.hms:push-ohos:5.2.0.305) Could not get resource 'https://developer.huawei.com/repo/com/huawei/hms/push-ohos/5.2.0.305/push-ohos-5.2.0.305.har'. Could not GET 'https://developer.huawei.com/repo/com/huawei/hms/push-ohos/5.2.0.305/push-ohos-5.2.0.305.har'. Received status code 403 from server: Forbidden
Because the "har" file type is blocked by my company network.
Does any way to get dependencies from my local repository? or how can I ignore the task, which is "collect dependencies" when I build Release version?
I try to Mapping repository to my local folder
maven { url 'https://developer.huawei.com/repo/' }
to mavenLocal()
put "push-ohos-5.2.0.305.har" file into {MavenLocal}\com\huawei\hms\push-ohos\5.2.0.305\
But it still show > Could not get resource 'https://developer.huawei.com/repo/com/huawei/hms/push-ohos/5.2.0.305/push-ohos-5.2.0.305.har'.