App crashes with exception before Activity.onCreate() Java android

﹥>﹥吖頭↗ 提交于 2019-12-24 01:54:24

问题


I get this weird exception:

libcore.io.ErrnoException: access failed: ENOENT (No such file or directory)

All I did was that I modified res/layout/main_activity.xml

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:

....


回答1:


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.



来源:https://stackoverflow.com/questions/22386715/app-crashes-with-exception-before-activity-oncreate-java-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!