最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - How to Fix Self-suppression not permitted - Stack Overflow

programmeradmin6浏览0评论

Solution: Increase JVM Metaspace Allocation

Modify gradle.properties: In your Flutter project directory, navigate to the android folder and locate the gradle.properties file. Add or update the following line to increase the maximum metaspace size:

  .gradle.jvmargs=-XX:MaxMetaspaceSize=512m

Solution: Increase JVM Metaspace Allocation

Modify gradle.properties: In your Flutter project directory, navigate to the android folder and locate the gradle.properties file. Add or update the following line to increase the maximum metaspace size:

  .gradle.jvmargs=-XX:MaxMetaspaceSize=512m
Share Improve this question asked Mar 27 at 8:59 Hammad KhanHammad Khan 816 bronze badges 1
  • I updated my answer; you may check it out now. – DevQt Commented Mar 28 at 4:30
Add a comment  | 

1 Answer 1

Reset to default 1

Use this configuration in your gradle.properties file:

.gradle.jvmargs=-Xmx4608m -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError

EDIT: Perform Cache Clearing If Necessary

After configuring your gradle.properties file, if necessary, clear the caches.

You may follow this relevant answer thread

or...

If you're using Android Studio, perform File > Invalidate Caches...

I hope this helps!

发布评论

评论列表(0)

  1. 暂无评论