记录一次build.gradle的错误

startup failed:

build file 'E:\xxx\build.gradle': 1: Invalid variable name. Must start with a letter but was:

. At [1:1]  @ line 1, column 1.

  // Top-level build file where you can add configuration options common to all sub-projects/modules.

  ^

1 error

Open File

此错误的原因在于,编码错误,接收别人的项目,运行报错,发现是build.gradle文件编码的问题,可以多修改几次编码,试试就好了

你可能感兴趣的:(记录一次build.gradle的错误)