Android Studio很长一段时间后无法运行应用程序

时间:2017-01-07 21:22:46

标签: android-studio genymotion

大约半年没有参与该项目,我不得不打开它做一些小的改动。但是,在打开项目时没有任何问题,我在尝试在模拟器上运行时收到以下日志消息:

GPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/BuildConfig) does not match path (Yifu/theindiestation/com/Yifu/BuildConfig.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/BuildConfig.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R) does not match path (Yifu/theindiestation/com/Yifu/R.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$anim) does not match path (Yifu/theindiestation/com/Yifu/R$anim.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$anim.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$attr) does not match path (Yifu/theindiestation/com/Yifu/R$attr.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$attr.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$bool) does not match path (Yifu/theindiestation/com/Yifu/R$bool.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$bool.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$color) does not match path (Yifu/theindiestation/com/Yifu/R$color.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$color.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$dimen) does not match path (Yifu/theindiestation/com/Yifu/R$dimen.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$dimen.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$drawable) does not match path (Yifu/theindiestation/com/Yifu/R$drawable.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$drawable.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$id) does not match path (Yifu/theindiestation/com/Yifu/R$id.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$id.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$integer) does not match path (Yifu/theindiestation/com/Yifu/R$integer.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$integer.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$layout) does not match path (Yifu/theindiestation/com/Yifu/R$layout.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$layout.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$mipmap) does not match path (Yifu/theindiestation/com/Yifu/R$mipmap.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$mipmap.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$string) does not match path (Yifu/theindiestation/com/Yifu/R$string.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$string.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$style) does not match path (Yifu/theindiestation/com/Yifu/R$style.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$style.class","sources":[{}]}
AGPBI: {"kind":"error","text":"PARSE ERROR:","sources":[{}]}
AGPBI: {"kind":"error","text":"class name (yifu/theindiestation/com/yifu/R$styleable) does not match path (Yifu/theindiestation/com/Yifu/R$styleable.class)","sources":[{}]}
AGPBI: {"kind":"error","text":"...while parsing Yifu/theindiestation/com/Yifu/R$styleable.class","sources":[{}]}
AGPBI: {"kind":"error","text":"15 errors; aborting","sources":[{}]}

:app:transformClassesWithDexForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 8.863 secs

我完全理解“与路径不匹配”的含义,但事实是我从未更改过文件夹或任何内容。我曾多次尝试清理和重建项目,更新了Genymotion,但仍无济于事。我在哪里可以开始寻找下一个?

谢谢!

0 个答案:

没有答案