Anyone knows how to debug in Android studio?
My program couldn't run due to an exception,
app:compilejavac.
And it says use debug or stacktrace for more info
. Please help me out. All other apps running fine only current project has this errors.
The error message is that :
The error is that: /Users/hexinhao/AndroidStudioProjects/zhbj77/app/build/generated/source/r/debug/com/jikexueyuan/zhbj75/R.java:2431: 错误: 需要';'
public static final int news_center-body_text=0x7f0c0089;
^
/Users/hexinhao/AndroidStudioProjects/zhbj77/app/build/generated/source/r/debug/com/jikexueyuan/zhbj75/R.java:2431: 错误: 需要<标识符>
public static final int news_center-body_text=0x7f0c0089;
^
2 个错误
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output