Unit testing 机器人分子的。Maven OutOfMemoryError:超出GC开销限制
为什么当我将pom.xml依赖项添加到Robolectric库中时,我会出现OutOfMemoryError:超出了GC开销限制 我的依赖:Unit testing 机器人分子的。Maven OutOfMemoryError:超出GC开销限制,unit-testing,maven,robolectric,android-testing,Unit Testing,Maven,Robolectric,Android Testing,为什么当我将pom.xml依赖项添加到Robolectric库中时,我会出现OutOfMemoryError:超出了GC开销限制 我的依赖: <dependency> <groupId>com.pivotallabs</groupId> <artifactId>robolectric</artifactId> <version>1
<dependency>
<groupId>com.pivotallabs</groupId>
<artifactId>robolectric</artifactId>
<version>1.2</version>
</dependency>
多亏了亚伦·冯德哈尔
<dexJvmArguments>
<argument>-Xmx1500m</argument>
</dexJvmArguments>