I'm building an Android app on windows using gradle and when it comes to last module I'm facing the following error :
* What went wrong:
Execution failed for task ':client:test:dexApiPhoneDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\adt-bundle-windows\sdk\build-tools\19.1.0\dx.bat --dex --num-threads=
.....
Error Code:
1
Output:
The command line is too long.
I'm using the command line to build. I know that a similar issue can be solve if using Maven by mapping you project to a disk letter as described here : The command line is too long. in java project with maven
Do you have any idea how can I solve that issue using Gradle?