采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
windows下 打包Android报错 .gradlew.bat assembleRelease
.gradlew.bat assembleRelease
Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap
jvm内存不足,参考下下面解决方案:
https://blog.csdn.net/Dearbb1/article/details/80949790
https://stackoverflow.com/questions/30045417/android-gradle-could-not-reserve-enough-space-for-object-heap
如下图
直接在控制台中运行 .\gradlew.bat assembleRelease会报错,但是在Android主项目,最右侧的Gradle窗口中点击assembleRelease按钮可以正常打包
登录后可查看更多问答,登录/注册
解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。
1.7k 4
2.0k 1
4.1k 5
1.8k 3
1.7k 5