我正在尝试组装一个发布APK,以便在另一款Android手机上测试这个应用程序,但被以下错误阻止。
> Task :app:lintVitalRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':reactnativenotifications:reactNative60DebugUnitTestRuntimeClasspath'.
> Could not download mockito-core-2.25.1.jar (org.mockito:mockito-core:2.25.1)
> Could not get resource 'https://jcenter.bintray.com/org/mockito/mockito-core/2.25.1/mockito-core-2.25.1.jar'.
> Could not GET 'https://jcenter.bintray.com/org/mockito/mockito-core/2.25.1/mockito-core-2.25.1.jar'. Received status code 502 from server: Bad Gateway
> Could not download shadows-framework-4.3.jar (org.robolectric:shadows-framework:4.3)
> Could not get resource 'https://jcenter.bintray.com/org/robolectric/shadows-framework/4.3/shadows-framework-4.3.jar'.
> Premature end of Content-Length delimited message body (expected: 3,329,584; received: 289,045)有什么建议吗?
发布于 2021-03-16 12:47:55
打开你的build.gradle文件,在android下添加以下代码:
android {
lintOptions {
checkReleaseBuilds false
}https://stackoverflow.com/questions/66649144
复制相似问题