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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-10-29
  • 2021-05-22
  • 2021-04-19
  • 2021-05-09
  • 2021-10-29
猜你喜欢
  • 2021-04-22
  • 2022-12-23
  • 2021-09-21
  • 2021-08-09
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
相关资源
相似解决方案