0

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 enter image description here

3
  • This is already answered here stackoverflow.com/questions/22629568/… Commented Dec 10, 2015 at 7:44
  • My bad.I did not mention any launcher activity in manifest. Commented Dec 10, 2015 at 7:54
  • @AbdulWaheed Kindly check my answer Commented Aug 12, 2017 at 6:19

1 Answer 1

1

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.