首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >React native - assemble apk

React native - assemble apk
EN

Stack Overflow用户
提问于 2021-03-16 12:29:07
回答 1查看 43关注 0票数 0

我正在尝试组装一个发布APK,以便在另一款Android手机上测试这个应用程序,但被以下错误阻止。

代码语言:javascript
复制
> 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)

有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2021-03-16 12:47:55

打开你的build.gradle文件,在android下添加以下代码:

代码语言:javascript
复制
android {

    lintOptions { 
      checkReleaseBuilds false 
 }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66649144

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档