Skip to content Skip to sidebar Skip to footer

Android Fatal Exception Main: Java.lang.runtimeexception: Unable To Start Activity Componentinfo

This is my first project in Android, that means that I am newbie at programming it. I know here on forum is a lot of pages describing solution for my problem, but now I lost 2 days

Solution 1:

Your activity name is WifiScan but you have declared it as .activity_wifi_scan change it and try again.

Change the <activity> element to:

<activityandroid:name=".WifiScan"><intent-filter><actionandroid:name="android.intent.action.MAIN"></action><categoryandroid:name="android.intent.category.LAUNCHER"></category><data /></intent-filter></activity>

Solution 2:

try to add your activity com.example.wifiscan.activity_wifi_scan to your AndroidManifest.xml

Solution 3:

You did not initialise your activity in your manifest file

Solution 4:

Solution 1: Try cleaning your project,restarting eclipse. Solution 2: Check manifest file. Solution 3: Check if the tag and tag in the manifest file match upto the correct location of the activity.

It would help if you can post your code.

Solution 5:

I was having this error and after hours of searching I've came out it was my mistake (Oh! But this is impossible! LOL).

The problem for me was that I've added the android:theme="@style/Theme.appcompat.Light" to the layout XMLs instead of the app manifest.

As soon I've removed the atributes from the layouts and replaced the one on the manifest everything worked like expected.

Post a Comment for "Android Fatal Exception Main: Java.lang.runtimeexception: Unable To Start Activity Componentinfo"