Android app not launching on emulator

前端 未结 2 1630
失恋的感觉
失恋的感觉 2021-01-27 02:14

I just set up eclipse to start android development according to this http://developer.android.com/sdk/installing.html. My problem seems similar to this one: Android app not laun

相关标签:
2条回答
  • 2021-01-27 02:48

    Try adding

    <category android:name="android.intent.category.DEFAULT" />
    

    Eclipse by default launches the DEFAULT activity. If that does not work, right click on the project, and check the run configurations. You have an option to set which activity to launch.

    Also, you should be able to see the icon for your app in the applications drawer on the emulator launcher. Click on that icon and see if the app launches. If it does not, then the problem is in your activity somehow (although I did not see anything wrong in it).

    If those two do not work, try restarting adb from the command prompt:

    >adb kill-server
    >adb start-server
    
    0 讨论(0)
  • 2021-01-27 03:06

    Sometimes in the similar situation clearing the project helped...

    Have you set the appname in the strings.xml file?

    0 讨论(0)
提交回复
热议问题