每次我尝试在 android 工作室模拟器上 运行 我的应用程序时,我都会收到错误消息
Every time I try to run my app on the android studio emulator I get error
我将从消息 gradle 构建中复制并粘贴消息。
Error:(14, 5) error: illegal start of expression
Error:(14, 12) error: illegal start of expression
Error:(14, 28) error: ';' expected
Error:(14, 35) error: ';' expected
Error:(18, 2) error: reached end of file while parsing
:app:compileDebugJavaWithJavac FAILED
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 15.311 secs
Information:6 errors
Information:0 warnings
Information:See complete output in console
清理或重建项目。这个错误可以解决。
你用什么IDE?
重新检查您的代码。必须有几行标有红叉或类似标记。它错误地表示缺少几个分号。您可能忘记输入分号,或者它可能只是由于 bracket/braces 结构错误引起的。只需检查标记的线条和上下几行。
如果您将代码放在这里,它可能会帮助其他人帮助您。
我将从消息 gradle 构建中复制并粘贴消息。
Error:(14, 5) error: illegal start of expression
Error:(14, 12) error: illegal start of expression
Error:(14, 28) error: ';' expected
Error:(14, 35) error: ';' expected
Error:(18, 2) error: reached end of file while parsing
:app:compileDebugJavaWithJavac FAILED
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 15.311 secs
Information:6 errors
Information:0 warnings
Information:See complete output in console
清理或重建项目。这个错误可以解决。
你用什么IDE? 重新检查您的代码。必须有几行标有红叉或类似标记。它错误地表示缺少几个分号。您可能忘记输入分号,或者它可能只是由于 bracket/braces 结构错误引起的。只需检查标记的线条和上下几行。 如果您将代码放在这里,它可能会帮助其他人帮助您。