首页 > 移动平台 > 详细

flutter upgrage到1.17版本 android打包报错 Could not determine the dependencies of task ':app:lintVitalRelease'.

时间:2020-07-10 14:05:54      阅读:612      评论:0      收藏:0      [点我收藏+]

flutter upgrage到1.17版本 android打包报错 Could not determine the dependencies of task ‘:app:lintVitalRelease‘.

* What went wrong:                                              
Running Gradle task ‘assembleRelease‘...                                                            
  Could not determine the dependencies of task ‘:app:lintVitalRelease‘.
Running Gradle task ‘assembleRelease‘...                                                             
 > Could not resolve all artifacts for configuration ‘:app:profileCompileClasspath‘.
Running Gradle task ‘assembleRelease‘...                                                              
   > Could not download flutter_embedding_profile.jar (io.flutter:flutter_embedding_profile:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7)
Running Gradle task ‘assembleRelease‘...                                                                  
  > Could not get resource ‘https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_profile/1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7/flutter_embedding_profile-1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7.jar‘.

于是在网上找到解决方案 在build.gradle 中android下加入如下代码

    lintOptions {
        disable ‘InvalidPackage‘
        checkReleaseBuilds false
        abortOnError false
    }

重新打包,问题得到解决

参考来源:https://blog.csdn.net/u010230055/article/details/80742626

flutter upgrage到1.17版本 android打包报错 Could not determine the dependencies of task ':app:lintVitalRelease'.

原文:https://www.cnblogs.com/qqcc1388/p/13278662.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!