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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM