[英]React native - assemble release apk
我正在嘗試組裝一個發布 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)
有什么建議么?
jcenter 目前存在問題。 https://status.bintray.com/
同時,嘗試切斷您的互聯網連接並運行匯編腳本。
打開您的 build.gradle 文件並在 android 下添加以下代碼:
android {
lintOptions {
checkReleaseBuilds false
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.