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

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'.

上一篇:iOS应用千万级架构:自动埋点与曝光


下一篇:appium和插件版本