【发布时间】:2016-08-17 10:25:33
【问题描述】:
我将从消息 gradle build 中复制并粘贴消息。
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'.
编译失败;有关详细信息,请参阅编译器错误输出。
Information:BUILD FAILED
Information:Total time: 15.311 secs
Information:6 errors
Information:0 warnings
Information:See complete output in console
【问题讨论】:
-
检查你的代码@Nobeel Gardenish
-
代码好吗? ? ?
-
您缺少几个分号。您的代码不是有效的 Java。修复编译错误以找出仍然存在的运行时错误。
-
我投票结束这个问题,因为它是一个编译错误;信息很清楚。
-
我已经找到了任何错误,但我找不到。这是我的Java代码。 public void onButtonTap(View v) { Toast myToast = Toast.makeText(getApplicationContext(), "哎哟!", Toast.LENGTH_LONG); myToast.show();
标签: java android android-studio android-studio-2.1