0

I get the following exception when I right click and run an android project from eclipse:

09-25 13:32:07.928: E/AndroidRuntime(23103): FATAL EXCEPTION: main
09-25 13:32:07.928: E/AndroidRuntime(23103): java.lang.RuntimeException: Unable to instantiate activity   ComponentInfo{com.nykkos.personalize/com.nykkos.personalize.profiler.Personalization}:   java.lang.ClassNotFoundException: com.nykkos.personalize.profiler.Personalization

I have re-confirmed that the class exists. For reference, I am pasting relevant code of manifest here.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nykkos.personalize"
android:sharedUserId="com.googlecheckout"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="14" />

<application
    android:allowBackup="true"
    android:icon="@drawable/amigo_logo1"
    android:label="@string/app_name" >
    <activity
        android:name=".profiler.Personalization"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

I have no idea as to why this error is shown, though the class mentioned in the exception is present in my code.

Any help is much appreciated.

user264953
  • 1,837
  • 8
  • 37
  • 63

1 Answers1

1

try it with

android:name=".Personalization" or android:name="com.nykkos.personalize.profiler.Personalization"

Nas
  • 2,158
  • 1
  • 21
  • 38
  • android:name="com.nykkos.personalize.profiler.Personalization" . It worked , wondering why it works perfect from a different machine and only with this fix in another!! – user264953 Sep 25 '13 at 14:01