安卓:什么错误?

标签 android eclipse adt

我得到了this warning在手机上运行我的应用程序时从控制台。而且我的手机没有任何反应。

No Launcher activity found! [2016-03-11 14:44:59 - ActivityTest] The launch will only sync the application package on the device!

最佳答案

检查这个 -

<activity android:name=".MainActivity">
  <intent-filter>
     <action android:name="android.intent.action.MAIN" />
     <category android:name="android.intent.category.LAUNCHER" />
   </intent-filter>
</activity>

您应该将操作设置为大写 即<action android:name="android.intent.action.MAIN" />

关于安卓:什么错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35934092/

相关文章:

java - 如何将 Bitmap ArrayList 保存到文件

java - 将号码从 NumberPicker 发送到 Firebase

java - 私有(private)嵌套类的可访问性

android - Eclipse Juno/Android 损坏,调试错误且未创建 gen 文件夹(R 错误)

android - 更新到 Android v.21 后无法识别 R

c - 为什么不能使用realloc函数来调整动态数组的堆栈大小?

android - callBatchTasks(来自 ORMLite)是否在单独的线程中运行?

java - 将 saveInstanceState 与 Uri ArrayList 和适配器一起使用

android - 从 Eclipse 检查 android sql 数据库

java - 安卓错误 "The application may be doing too much work on its main thread"