2016-11-28 10 views
2

私のアプリケーションのAPKをビルドしようとしていますが、これらのエラーがあります。誰もその理由を知っていますか?私が問題を解決するのを助けてください。APKエラーをビルドするExecutionException:java.lang.OutOfMemoryError:

Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space . Please assign more memory to Gradle in the project's gradle.properties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: <em>org.gradle.jvmargs=-Xmx1024m</em> <a href="http://www.gradle.org/docs/current/userguide/build_environment.html">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html">Read about Java's heap size</a> 


Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded 


Error:Execution failed for task ':app:transformClassesWithDexForDebug'. 
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException 

答えて

1

grade.propertiesに行くと私のために、Gradleのに多くのメモリを割り当てる: -

org.gradle.jvmargs=-Xmx2048m 

クラッシュはまだ、アプリケーションタグ内にマニフェストにこれを追加します(存在する場合): -

android:largeHeap="true" 
関連する問題