eclipse - Problems running first android app -


i'm going throught tutorial on developer.android.com , i've gotten point wants me run program. right click on project in project explorer, go run , click android application. console displays following

[2014-06-27 15:15:23 - myfirstapp] android launch! [2014-06-27 15:15:23 - myfirstapp] adb running normally. [2014-06-27 15:15:23 - myfirstapp] no launcher activity found! [2014-06-27 15:15:23 - myfirstapp] launch sync application package on device! [2014-06-27 15:15:23 - myfirstapp] performing sync [2014-06-27 15:15:23 - myfirstapp] automatic target mode: unable detect device compatibility. please select target device. 

if need see androidmanifest.xml file, here is

<manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.myfirstapp"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="21" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >     </application>  </manifest> 

you missing activity tag like:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.myfirstapp"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="21" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >      ***<activity         android:name="com.example.myfirstapp.youractivity"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     ***</activity>      </application> </manifest> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -