I have a problem Compiling my program when I add some class in Kotlin in it. When I do a clean of the project, and Start running it, the next error is prompt:
Error:Execution failed for task ':app:compileRetrolambdaMyProject'.
Process 'command '/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
The thing is that if I execute again the project it works perfectly. So basically I have to build the project twice in order to execute the project.
I need this to be fixed because I build the final version in Jenkins and this is giving me problems.
Any clues on how to fix it?
Edit:
This are the unique warnings that it gives me, but as I said, they are warnings, not errors, and if I Run again the project it works perfectly :
Warning:(31, 57) Parameter 'buttonView' is never used, could be renamed to _
Warning:(40, 46) Parameter 'v' is never used, could be renamed to _
Warning:(56, 48) Parameter 'v' is never used, could be renamed to _
Error:Execution failed for task ':app:compileRetrolambdaMyProject'.
> Process 'command '/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java'' finished with non-zero exit value 1