Android Studio FAQ

1、

Error:Execution failed for task ':zrh:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details

Workaround: End the java.exe, javaw.exe processes

2. Android real machine debugging has been stuck in installing apk

restart cellphone

3、

Process 'command 'D:\ide\android-studio\jre\bin\java.exe'' finished with non-zero exit value 1

Insufficient memory, set the memory to a larger value

-Xms1024m //JVM启动的起始堆内存
-Xmx4096m //AndroidStudio能使用的最大heap内存
-XX:MaxPermSize=1024m //最大的Permanent generation大小。存放的事类本身(不是对象),以及方法,一些固定的字符串等等。
-XX:ReservedCodeCacheSize=512m //设置JIT java compiler在compile的时候的最大代码缓存
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=300

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325708672&siteId=291194637
Recommended