eclipse在手机上推送和运行apk的问题

发布于 2024-12-09 11:29:17 字数 3613 浏览 0 评论 0原文

几个月前,我为 Android 手机编写了一个广播电台应用程序。我在模拟器和手机上测试了它,当我将它直接从 eclipse 推送到手机时,一切正常。

现在我想对应用程序进行一些更改并完成它,但我的问题是现在我无法从手机上的 Eclipse 再次运行它。

当我在模拟器中测试时一切都很好。如果我将 APK 从手上复制到手机上并安装它,一切都很好。

在 Eclipse 中,控制台告诉我:

[2011-10-11 11:51:30 - Radio54House] Android Launch!
[2011-10-11 11:51:30 - Radio54House] adb is running normally.
[2011-10-11 11:51:30 - Radio54House] Performing com.Radio54House.Radio54House activity launch
[2011-10-11 11:51:32 - Radio54House] WARNING: Unknown device API version!
[2011-10-11 11:51:32 - Radio54House] Uploading Radio54House.apk onto device '0288424643204157'
[2011-10-11 11:51:32 - Radio54House] Installing Radio54House.apk...
[2011-10-11 11:51:32 - Radio54House] Success!
[2011-10-11 11:51:32 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:32 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:35 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:36 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:39 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:39 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:42 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:42 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:45 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:45 - Radio54House] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.Radio54House/.Radio54House }
[2011-10-11 11:51:45 - Radio54House] ActivityManager: Error type 3
[2011-10-11 11:51:45 - Radio54House] ActivityManager: Error: Activity class {com.Radio54House/com.Radio54House.Radio54House} does not exist.

这是我在 google 中搜索但没有结果的第二天。我唯一发现一些人写信先清理项目,但这对我没有帮助。

如果这里需要的话还有我的 AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.Radio54House"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="8" />
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Radio54House"
                  android:label="@string/app_name"
                  android:theme="@android:style/Theme.NoTitleBar"
                  android:screenOrientation="portrait"
                  >
            <intent-filter>

                <category android:name="android.intent.category.LAUNCHER" />
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
    <activity android:name=".RadioTab" />
    <activity android:name=".NewsTab" />
    <activity android:name=".ChartGroup" />
    <activity android:name=".ChartSelector" />
    <activity android:name=".House27Tab" />
    <activity android:name=".ClubFuelTab" />
    </application>
</manifest>

有帮助吗?

a few month ago I wrote a radio station app for android phones. I tested it in the emulator and on my phone and all worked fine, when I pushed it directly from eclipse to the phone.

Now I wanted to make some changes to the app and finalize it, but my problem is now that I can't run it again from Eclipse on the phone.

When I test in the emulator all is fine. If I copy the APK from hand to the phone an install it, all is fine.

In Eclipse the console tells me that:

[2011-10-11 11:51:30 - Radio54House] Android Launch!
[2011-10-11 11:51:30 - Radio54House] adb is running normally.
[2011-10-11 11:51:30 - Radio54House] Performing com.Radio54House.Radio54House activity launch
[2011-10-11 11:51:32 - Radio54House] WARNING: Unknown device API version!
[2011-10-11 11:51:32 - Radio54House] Uploading Radio54House.apk onto device '0288424643204157'
[2011-10-11 11:51:32 - Radio54House] Installing Radio54House.apk...
[2011-10-11 11:51:32 - Radio54House] Success!
[2011-10-11 11:51:32 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:32 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:35 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:36 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:39 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:39 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:42 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:42 - Radio54House] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-10-11 11:51:45 - Radio54House] Starting activity com.Radio54House.Radio54House on device 0288424643204157
[2011-10-11 11:51:45 - Radio54House] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.Radio54House/.Radio54House }
[2011-10-11 11:51:45 - Radio54House] ActivityManager: Error type 3
[2011-10-11 11:51:45 - Radio54House] ActivityManager: Error: Activity class {com.Radio54House/com.Radio54House.Radio54House} does not exist.

This is the second day I was searchin google without a result. The only thing I found some people who wrote to clean the project first, but that didn't help me.

If needed here is also my AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.Radio54House"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="8" />
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Radio54House"
                  android:label="@string/app_name"
                  android:theme="@android:style/Theme.NoTitleBar"
                  android:screenOrientation="portrait"
                  >
            <intent-filter>

                <category android:name="android.intent.category.LAUNCHER" />
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
    <activity android:name=".RadioTab" />
    <activity android:name=".NewsTab" />
    <activity android:name=".ChartGroup" />
    <activity android:name=".ChartSelector" />
    <activity android:name=".House27Tab" />
    <activity android:name=".ClubFuelTab" />
    </application>
</manifest>

Any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小草泠泠 2024-12-16 11:29:17

您是否尝试重新启动您的设备?
我想我也有这个错误消息,我尝试重新启动设备并在设备上手动卸载应用程序。也许它有效...

Did you try restarting your device?
I think I had this errormessage too, and I tried restarting the device and uninstall the app manually on the device. Maybe it works...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文