Recommended website http://jingyan.baidu.com/album/9c69d48fa0290013c9024e3f.html
When using IntelliJ idea or Android studio to develop Android applications, if there is a large amount of code, there will be problems when compiling
java.lang.OutOfMemoryError : Java heap space
It’s a mistake. Let’s talk about how to solve this problem.
When using IntelliJ idea or Android studio to develop Android applications, if there is a large amount of code, there will be problems when compiling
java.lang.OutOfMemoryError : Java heap space
Error reported by:
When using IntelliJ idea or Android studio to develop Android applications, if there is a large amount of code, there will be problems when compiling
java.lang.OutOfMemoryError : Java heap space
Error report of:
0
To solve this problem, we need to increase the heap of the corresponding compiler.
Now in the file menu, open the settings interface,
and
Then, in the search box, enter “heap”, and the settings related to heap will be displayed below. Find the corresponding development language settings, and increase heap. In this case, Java heap is not enough, so click Android compiler to increase the corresponding heap.
If the heap of other languages is not enough, turn up the heap in the corresponding menu.
Read More:
- Java:java.lang.OutOfMemoryError : GC overhead limit exceeded solution
- Outofmemoryerror: GC overhead limit exceeded solution
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- Java. Lang. outofmemoryerror when using idea build project
- Idea community version starts Tomcat to report error running ‘XXXXXX’: java.lang.NullPointerException
- Tomcat memory overflow in Eclipse: Java. Lang. outofmemoryerror: permgen space solution:
- Error when idea starts: Java: outofmemoryerror: insufficient memory
- Solution in idea java.lang.ClassNotFoundException : org.springframework.web . context.ContextLoaderListener
- Idea ignores compilation errors and runs in eclipse compilation mode
- java.lang.Error: Unresolved compilation problems
- Idea error: Java: compilation failed: internal java compiler error
- IntelliJ idea code did not report an error, compilation failed
- IntelliJ idea error: Java: compilation failed: solution to internal java compiler error
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- Java idea Compilation failed: internal java compiler error
- Differences between Java stack overflow ror and outofmemoryerror
- Android studio — java.lang.nullpointerexception(no error message)
- Android appears java.lang.NoClassDefFoundError A solution to the error
- Idea Tomcat start error Error:java : Compilation failed: internal java compiler error
- java.lang.IllegalStateException: Could not execute method for android:onClick