Error: Failed to execute Gradle execution. Reason: Unknown command line option '-X'

In Android Studio 1.5.1, I get this error. I searched, but could not determine what causes this error.

Removed all command line options that still receive the error.

Checked all xml files for errors. Not lucky yet.

enter image description here

+4
source share
3 answers

I also encounter this problem, I was lucky that I found the reason. open your as. Setting-> compiler

command line options

Make sure it is empty, your gradle will be fine

+4
source

Perform the following process:

  • Open android studio
  • > a > , >
  • "" n ok
  • make project [Ctrl + F9]

See the image

0

I have empty text, but still I get this error

0
source

Source: https://habr.com/ru/post/1619423/


All Articles