Android Project - Something messed up my .classpath files (Eclipse 4.2? Eclipse 3.8?) -
i'm looking if else got problem, , if found source reason it.
what happened this:
i have dozens of different project. 1 of this project:
that had once me. didn't project, aside importing it. couple months ago. had eclipse 3.7 @ point.
in meantime found out eclipse juno out, , thought try it. did, later on due couple different problems decided revert time being. found out 3.8 version of eclipse , gave go, , left eclipse environment while.
today opened eclipse wanted work, , found out on half of projects(working projects) stopped working, , gave me error or similar errors:
05-18 19:53:01.672: e/androidruntime(3939): fatal exception: main 05-18 19:53:01.672: e/androidruntime(3939): java.lang.runtimeexception: unable instantiate activity componentinfo{com.example.android.bitmapfun/com.example.android.bitmapfun.ui.imagegridactivity}:
basicaly errors had classnotfound exception. said myself, that's strange. started investigating, , after couple of hours found out messed .classpath (build path) files. downloaded sample project again, , it's classpath file looks so:
<?xml version="1.0" encoding="utf-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="gen"/> <classpathentry kind="con" path="com.android.ide.eclipse.adt.android_framework"/> <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.libraries"/> <classpathentry kind="con" path="com.android.ide.eclipse.adt.dependencies"/> <classpathentry kind="output" path="bin/classes"/> </classpath>
but .classpath file in local project looked that:
<?xml version="1.0" encoding="utf-8"?> <classpath> <classpathentry kind="con" path="com.android.ide.eclipse.adt.android_framework"/> <classpathentry kind="con" path="com.android.ide.eclipse.adt.libraries"/> <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.dependencies"/> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="gen"/> <classpathentry kind="output" path="bin/classes"/> </classpath>
i swear god didn't touch project since imported while back, , deffinetly in working condition then.
editing build path didn't work itself. closing , reopening project didn't help. had restart eclipse well, , then, when edited .classpath file (or build path) worked again.
also found out, export tab not updated. instance, if add library, added dependencies, in order it's classes found @ runtime, has exported. never (almost never) touched tab, had "checked" automaticaly once added different libraries, seems it's not doing so.
i have no idea did this, hope it's not eclipse juno, had(has) kind of bug. has encountered this?
i went complaining library , changed project-properties > java compiler > compiler compliance level > 1.6
, solved problem.
Comments
Post a Comment