为什么Internet应用程序没有安装在模拟器上?

时间:2011-07-27 11:30:38

标签: android android-emulator

我创建了一个从互联网播放音乐的Android应用程序。

当我从eclipse运行它时,它正常工作,但是当我尝试通过单击模拟器上的图标从模拟器启动应用程序时,它显示Toast,说“手机上没有安装应用程序”。

我不明白原因。有人可以帮助我吗?

07-27 18:40:17.543: DEBUG/AndroidRuntime(537): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
07-27 18:40:17.543: DEBUG/AndroidRuntime(537): CheckJNI is ON
07-27 18:40:19.543: DEBUG/AndroidRuntime(537): Calling main entry com.android.commands.pm.Pm
07-27 18:40:19.683: DEBUG/AndroidRuntime(537): Shutting down VM
07-27 18:40:19.703: INFO/AndroidRuntime(537): NOTE: attach of thread 'Binder Thread #4' failed
07-27 18:40:19.715: DEBUG/dalvikvm(537): GC_CONCURRENT freed 100K, 72% free 296K/1024K, external 0K/0K, paused 2ms+4ms
07-27 18:40:19.715: DEBUG/jdwp(537): Got wake-up signal, bailing out of select
07-27 18:40:19.715: DEBUG/dalvikvm(537): Debugger has detached; object registry had 1 entries
07-27 18:40:20.283: DEBUG/AndroidRuntime(548): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
07-27 18:40:20.283: DEBUG/AndroidRuntime(548): CheckJNI is ON
07-27 18:40:21.193: DEBUG/AndroidRuntime(548): Calling main entry com.android.commands.am.Am
07-27 18:40:21.233: INFO/ActivityManager(61): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.nine.patch/.Patch } from pid 548
07-27 18:40:21.303: DEBUG/AndroidRuntime(548): Shutting down VM
07-27 18:40:21.383: INFO/AndroidRuntime(548): NOTE: attach of thread 'Binder Thread #3' failed
07-27 18:40:21.799: DEBUG/dalvikvm(548): GC_CONCURRENT freed 102K, 69% free 319K/1024K, external 0K/0K, paused 1ms+2ms
07-27 18:40:21.799: DEBUG/jdwp(548): Got wake-up signal, bailing out of select
07-27 18:40:21.799: DEBUG/dalvikvm(548): Debugger has detached; object registry had 1 entries
07-27 18:40:22.583: DEBUG/dalvikvm(467): GC_EXTERNAL_ALLOC freed 4K, 53% free 2564K/5379K, external 2626K/3030K, paused 67ms
07-27 18:40:22.653: DEBUG/MediaPlayer(467): Couldn't open file on client side, trying server side
07-27 18:40:22.653: INFO/StagefrightPlayer(34): setDataSource('http://www.perlgurl.org/podcast/archives/podcasts/PerlgurlPromo.mp3')
07-27 18:40:22.664: INFO/NuHTTPDataSource(34): connect to www.perlgurl.org:80/podcast/archives/podcasts/PerlgurlPromo.mp3 @0
07-27 18:40:31.286: WARN/ActivityManager(61): Launch timeout has expired, giving up wake lock!
07-27 18:40:31.356: WARN/ActivityManager(61): Activity idle timeout for HistoryRecord{407f6138 com.nine.patch/.Patch}
07-27 18:40:31.706: DEBUG/AudioSink(34): bufferCount (4) is too small and increased to 12
07-27 18:40:32.073: INFO/ActivityManager(61): Displayed com.nine.patch/.Patch: +10s81ms
07-27 18:40:32.667: WARN/AudioFlinger(34): write blocked for 87 msecs, 1437 delayed writes, thread 0xc650
07-27 18:40:34.757: INFO/NuCachedSource2(34): ERROR_END_OF_STREAM
07-27 18:40:37.223: DEBUG/dalvikvm(140): GC_EXPLICIT freed 85K, 51% free 2950K/5959K, external 6050K/7443K, paused 81ms
07-27 18:40:37.696: WARN/AudioFlinger(34): write blocked for 72 msecs, 1493 delayed writes, thread 0xc650
07-27 18:40:42.715: WARN/AudioFlinger(34): write blocked for 71 msecs, 1557 delayed writes, thread 0xc650
07-27 18:40:47.728: WARN/AudioFlinger(34): write blocked for 71 msecs, 1620 delayed writes, thread 0xc650
07-27 18:40:52.731: WARN/AudioFlinger(34): write blocked for 71 msecs, 1684 delayed writes, thread 0xc650
07-27 18:40:57.752: WARN/AudioFlinger(34): write blocked for 71 msecs, 1748 delayed writes, thread 0xc650
07-27 18:41:02.791: WARN/AudioFlinger(34): write blocked for 73 msecs, 1809 delayed writes, thread 0xc650
07-27 18:41:07.803: WARN/AudioFlinger(34): write blocked for 75 msecs, 1874 delayed writes, thread 0xc650
07-27 18:41:11.637: ERROR/MP3Extractor(34): Unable to resync. Signalling end of stream.

这是LogCat输出。

以下是我的Manifest xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.nine.patch"
       android:installLocation="preferExternal"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="9" />

    <application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.INTERNET" android:debuggable="false">
        <activity android:name=".Patch"
                  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>

2 个答案:

答案 0 :(得分:1)

当有一个桌面快捷方式图标指向应用程序的旧版本和不再存在版本时,我发现这样的事情发生了。

尝试删除任何桌面快捷方式并从应用程序抽屉启动。

注意:这不起作用

答案 1 :(得分:1)

你可以做的一件事 - 痛苦但应该工作 - 是创建另一个应用程序,简单易行,几乎没有任何东西。那应该安装和工作。然后开始查看工作和非工作应用程序之间的最后差异。可能包括将所有代码移动到新代码。