请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

android打包包错求救

相关版本:

"dependencies": {
    "@react-native-community/async-storage": "^1.6.1",
    "GitHubTrending": "^3.1.1",
    "react": "16.8.6",
    "react-native": "0.60.5",

执行./gradlew assembleRelease打包时报错求解:
Could not determine the dependencies of task ‘:@react-native-community_async-storage:extractReleaseAnnotations’.


FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':@react-native-community_async-storage:extractReleaseAnnotations'.
> Could not resolve all task dependencies for configuration ':@react-native-community_async-storage:lintClassPath'.
   > Could not resolve com.android.tools.lint:lint-gradle:26.4.1.
     Required by:
         project :@react-native-community_async-storage
      > Could not resolve com.android.tools.lint:lint-gradle:26.4.1.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.4.1/lint-gradle-26.4.1.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.4.1/lint-gradle-26.4.1.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve com.android.tools.lint:lint-gradle:26.4.1.
         > Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/lint/lint-gradle/26.4.1/lint-gradle-26.4.1.pom'.
            > Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/lint/lint-gradle/26.4.1/lint-gradle-26.4.1.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve com.android.tools.lint:lint-gradle:26.4.1.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.4.1/lint-gradle-26.4.1.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.4.1/lint-gradle-26.4.1.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
               * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2019-09-24 20:02:55

网络问题导致依赖包没有下载下来,多重试几次

0 回复 有任何疑惑可以回复我~

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号