0

Yesterday everything worked fine with my project, but today I receive very weird errors :

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.redonbas/com.example.redonbas.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.redonbas.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.redonbas-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.redonbas-2, /vendor/lib, /system/lib]]

My AndroidManifest :

<activity
    android:name=".MainActivity"
    android:label="@string/app_name" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

MainActivity is in correct package:

enter image description here

enter image description here

I refered to the problem but I copied all the File System of the project to the new, but that didn't help. I also created new project with another package and manually copied all the stuff from the old project there - the problem still remains!

What's wrong with it?

Community
  • 1
  • 1
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81

2 Answers2

0

Uncheck your Android Dependencies and Android Private Libraries Checkboxes.

Piyush
  • 18,895
  • 5
  • 32
  • 63
0

Yes, the problem was in past SherlockActionBar and its android-support library implementing .

Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
  • So your problem was solved just by updating SherlockActionBar library ? – Gem Feb 06 '15 at 11:23
  • no, problem solved by deleting the android-support library, because it is already contains in SherlockActionBar – Rikki Tikki Tavi Feb 06 '15 at 12:26
  • ohh i got it. But now a days when there are multiple support files eclipse cant able to build the project and throw "conversion to dalvik format failed with error 1". – Gem Feb 06 '15 at 12:35