I just updated android studio 1.3 to 1.5(1.5 downloaded from stable channel) and now created new project it is compiling fine but not deploying on the device and emulator.Here is the log cat image

-
This is already answered here stackoverflow.com/questions/22629568/…Viral Patel– Viral Patel2015-12-10 07:44:18 +00:00Commented Dec 10, 2015 at 7:44
-
My bad.I did not mention any launcher activity in manifest.Abdul Waheed– Abdul Waheed2015-12-10 07:54:51 +00:00Commented Dec 10, 2015 at 7:54
-
@AbdulWaheed Kindly check my answerIntelliJ Amiya– IntelliJ Amiya2017-08-12 06:19:17 +00:00Commented Aug 12, 2017 at 6:19
Add a comment
|
1 Answer
You must declare your activity in the manifest file in order for it to be accessible to the system. To declare your activity, open your manifest file and add an <activity> element as a child of the <application> element.
<manifest ... >
<application ... >
<activity android:name=".ExampleActivity" />
...
</application ... >
...
</manifest >
When you create a new application using the Android SDK tools, the stub activity that's created for you automatically includes an intent filter that declares the activity responds to the "main" action and should be placed in the "launcher" category.
<activity android:name=".ExampleActivity" android:icon="@drawable/app_icon">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>