Android Studio: Gradle sync failed

今天Android Studio打开报了这个错误:


Emulator: Process finished with exit code 0


Gradle sync failed: Unable to start the daemon process.
		This problem might be caused by incorrect configuration of the daemon.
		For example, an unrecognized jvm option is used.
		Please refer to the user guide chapter on the daemon at
		Please read the following process output to find out more:
		CodeCache: size=245760Kb used=2467Kb max_used=2478Kb free=243293Kb
		bounds [0x0000000004890000, 0x0000000004b00000, 0x0000000013890000]
		total_blobs=854 nmethods=560 adapters=206
		compilation: disabled (not enough contiguous free space left)
		FAILURE: Build failed with an exception.
		* What went wrong:
		java.lang.OutOfMemoryError (no error message)
		* Try:
		Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
		* Get more help at
		OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
		OpenJDK 64-Bit Serv... (show balloon)