【问题标题】:Apk installed in bin but not found in emulatorApk 安装在 bin 中但在模拟器中找不到
【发布时间】:2015-10-31 18:25:30
【问题描述】:
[2015-10-31 18:16:55 - Lab5] Performing sync
[2015-10-31 18:16:55 - Lab5] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Android'
[2015-10-31 18:16:55 - Lab5] Uploading Lab5.apk onto device 'emulator-5554'
[2015-10-31 18:16:56 - Lab5] Installing Lab5.apk...
[2015-10-31 18:17:06 - Lab5] Success!
[2015-10-31 18:17:06 - Lab5] /Lab5/bin/Lab5.apk installed on device
[2015-10-31 18:17:06 - Lab5] Done!

【问题讨论】:

  • 在此处发布您的清单 xml。
  • 您的 APK 是从 项目树的 bin/ 目录安装的。它在手机上的最终位置取决于 Android 版本,但对于任何已知的 Android 版本,它都不是一个名为“bin”的地方。

标签: java android xml eclipse mobile


【解决方案1】:

您需要在 AndroidManifest.xml 中为您的主 Activity 提供 LAUNCHER 类别。示例:

    <intent-filter android:label="@string/app_name">
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

【讨论】:

    猜你喜欢
    • 2021-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-18
    • 2012-05-14
    • 2019-06-30
    • 1970-01-01
    相关资源
    最近更新 更多