Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

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:

....

like image 360
Sold Out Avatar asked Dec 01 '25 02:12

Sold Out


1 Answers

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.

like image 84
Sold Out Avatar answered Dec 02 '25 15:12

Sold Out