转换Flutter项目为APK时出错,错误文件来自AppData。

huangapple go评论57阅读模式
英文:

Error on converting flutter project to APK, error files coming from AppData

问题

I tried updating my dependencies and changing some parts of my code, but it still doesn't work. I was trying to build it into an APK for a few days now, but I still get the same error.

英文:

So I tried every possible way and ask from different people, and I also tried updating dependencies on my project but to only possible latest version since there's a version constraint. Here's the full error

https://pastebin.com/r6ZEPURC

Script 'C:\Users\Rodrigo\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\Users\Rodrigo\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

How can I fix this issue? thanks.

I tried updating my dependencies and changing some parts of my code, but it still doesn't work. I was trying to build it into an APK for a few days now, but I still get the same error.

答案1

得分: 1

有一个已知的问题,modal_bottom_sheet包与material底部表单发生冲突。您需要按照那里的建议来构建您的应用程序。请查看:https://github.com/jamesblasco/modal_bottom_sheet/issues/328

一般来说,当出现此类错误时,始终建议检查该包的GitHub存储库的问题部分。

英文:

There is a known issue with the modal_bottom_sheet package conflicting with material bottom sheet. You need to follow the recommendations there to get your app to build. See: https://github.com/jamesblasco/modal_bottom_sheet/issues/328

As a general rule, it is always a good idea to check the package's GitHub repo issues section when you see errors like this.

huangapple
  • 本文由 发表于 2023年2月18日 07:20:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75490063.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定