Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Failed to complete Gradle execution. Cause: Unknown command-line option '-X'

In Android Studio 1.5.1 I am getting this error. I searched but wasn't able to identify what's causing this error.

Removed all command-line option still getting error.

Checked all xml files for any errors. Still no luck.

enter image description here

like image 566
SkyTreasure Avatar asked Dec 10 '15 23:12

SkyTreasure


2 Answers

I also meet this issue,lucky I find the reason. open your as. Setting->compiler

command line options

Be sure this is empty, your gradle will be ok

like image 139
duanduan Avatar answered Oct 24 '22 13:10

duanduan


Follow the process below:

  1. Open the android studio
  2. File > setting > Build, execution and deployment > compiler
  3. clear the command line text and then click apply n ok
  4. click on make project button or simply press [Ctrl+F9]

See the image

like image 35
TAMA SARKER Avatar answered Oct 24 '22 14:10

TAMA SARKER