与应用程序崩溃的异常Activity.onCreate()的Java之前,机器人 [英] App crashes with exception before Activity.onCreate() Java android
问题描述
我得到这个奇怪的异常:
I get this weird exception:
libcore.io.ErrnoException: access failed: ENOENT (No such file or directory)
我所做的是我修改 RES /布局/ main_activity.xml
但是,当我回滚到previous的情况下,我得到相同的异常。我知道这看起来像这个问题是在其他地方,但我只是不明白的地方。
任何提示,请?
But when I roll back to the previous situation, I get same exception. I know this looks like the problem is elsewhere, but I just can't figure where. Any hints, please ?
下面是在相关线背面迹的一部分:
这是主线程的回溯的出口。问题是在最上面的一行。
Here is part of the back trace in the relevant thread: This is an export of back trace of the main thread. Problem is in the top most line.
<1> main@830012765280, prio=5, in group 'main', status: 'RUNNING'
at libcore.io.ForwardingOs.access(ForwardingOs.java:38)
at java.io.File.doAccess(File.java:283)
at java.io.File.exists(File.java:363)
at dalvik.system.DexPathList.splitAndAdd(DexPathList.java:168)
at dalvik.system.DexPathList.splitPaths(DexPathList.java:149)
at dalvik.system.DexPathList.splitLibraryPath(DexPathList.java:130)
at dalvik.system.DexPathList.<init>(DexPathList.java:98)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:52)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:302)
at android.app.LoadedApk.makeApplication(LoadedApk.java:474)
at android.app.ActivityThread.handleBindApplication(ActivityTh3938)
at android.app.ActivityThread.access$1300(ActivityThread.java:123)read.java:
...
推荐答案
在这样的情况下,节省您的时间和理智通过回滚到previous版本并重新开始。
更妙的是 - 使用另一个IDE Eclipse的比。
这正是我没有和它完全SENCE帮助。
In cases like this, you save your time and sanity by rolling back to previous version and start over. Even better - use another IDE than Eclipse. That's exactly what I did and it helped in full sence.
这篇关于与应用程序崩溃的异常Activity.onCreate()的Java之前,机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!