5

我已经问过这个问题,但是 2 个答案都没有解决这个问题,现在我什至尝试安装 eclipse indigo 并安装 64 位 jdk,但我就是无法让应用程序运行!模拟器启动速度很快,没有错误,控制台上什么也没有。甚至设备选择器也不会出现(出现一次)。这是我尝试运行它的第三天。

08-04 02:47:12.460: I/Choreographer(395): Skipped 48 frames!  The application may be doing too much work on its main thread.
08-04 02:47:12.930: D/dalvikvm(395): GC_CONCURRENT freed 2417K, 32% free 15263K/22279K, paused 34ms+11ms, total 171ms
08-04 02:47:13.380: D/dalvikvm(395): GC_CONCURRENT freed 1702K, 31% free 15525K/22279K, paused 31ms+7ms, total 119ms
08-04 02:47:13.380: D/dalvikvm(395): WAIT_FOR_CONCURRENT_GC blocked 49ms
08-04 02:47:13.470: D/dalvikvm(353): GC_CONCURRENT freed 383K, 6% free 8420K/8903K, paused 238ms+546ms, total 1896ms
08-04 02:47:14.050: D/dalvikvm(395): GC_FOR_ALLOC freed 2028K, 32% free 15307K/22279K, paused 76ms, total 85ms
08-04 02:47:14.440: D/dalvikvm(395): GC_FOR_ALLOC freed 1816K, 35% free 14690K/22279K, paused 63ms, total 69ms
08-04 02:47:14.760: E/SQLiteLog(496): (1) no such table: files
08-04 02:47:14.960: I/ContactsDatabaseHelper(353): Locale change completed in 80174ms
08-04 02:47:14.960: I/ContactsDatabaseHelper(353): Switching to locale en_US
08-04 02:47:15.050: E/WVMExtractor(39): Failed to open libwvm.so
08-04 02:47:15.240: E/WVMExtractor(39): Failed to open libwvm.so
08-04 02:47:15.710: E/WVMExtractor(39): Failed to open libwvm.so
08-04 02:47:15.740: E/MetadataRetrieverClient(39): failed to extract an album art
08-04 02:47:15.940: W/MediaProvider(496): no database for scanned volume external
08-04 02:47:16.090: I/MediaProvider(496): Upgrading media database from version 0 to 509, which will destroy all old data
08-04 02:47:16.140: I/ContactsDatabaseHelper(353): Locale change completed in 1174ms
08-04 02:47:16.150: I/ContactsProvider(353): Upgrading aggregation algorithm
08-04 02:47:16.180: I/ContactAggregator(353): Marked all visible contacts for aggregation: 0 raw contacts, 7 ms
08-04 02:47:16.201: I/ContactsProvider(353): Aggregation algorithm upgraded for 0 raw contacts in 33ms
08-04 02:47:16.350: I/ContactsFTS(353): Rebuild contact search index in 106ms, 0 contacts
08-04 02:47:16.600: D/dalvikvm(353): GC_CONCURRENT freed 448K, 6% free 8430K/8967K, paused 36ms+40ms, total 154ms
08-04 02:47:17.400: E/SQLiteLog(496): (1) no such table: album_info
08-04 02:47:17.480: D/dalvikvm(496): GREF has increased to 201
08-04 02:47:17.510: W/MediaScanner(496): Error opening directory '/mnt/sdcard/.android_secure/', skipping: Permission denied.
08-04 02:47:17.710: V/MediaScanner(496): pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@412713a0
08-04 02:47:17.710: V/MediaScanner(496): /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@412713a0
08-04 02:47:17.990: E/MediaScannerService(496): Exception in handleMessage
08-04 02:47:17.990: E/MediaScannerService(496): android.database.sqlite.SQLiteConstraintException: column time is not unique (code 19)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:727)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1665)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1644)
08-04 02:47:17.990: E/MediaScannerService(496):     at com.android.providers.media.MediaProvider.logToDb(MediaProvider.java:1736)
08-04 02:47:17.990: E/MediaScannerService(496):     at com.android.providers.media.MediaProvider.delete(MediaProvider.java:3742)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.content.ContentProvider$Transport.delete(ContentProvider.java:228)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.content.ContentResolver.delete(ContentResolver.java:956)
08-04 02:47:17.990: E/MediaScannerService(496):     at com.android.providers.media.MediaScannerService.scan(MediaScannerService.java:109)
08-04 02:47:17.990: E/MediaScannerService(496):     at com.android.providers.media.MediaScannerService.access$300(MediaScannerService.java:49)
08-04 02:47:17.990: E/MediaScannerService(496):     at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:261)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.os.Handler.dispatchMessage(Handler.java:99)
08-04 02:47:17.990: E/MediaScannerService(496):     at android.os.Looper.loop(Looper.java:137)
08-04 02:47:17.990: E/MediaScannerService(496):     at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:183)
08-04 02:47:17.990: E/MediaScannerService(496):     at java.lang.Thread.run(Thread.java:856)
08-04 02:47:18.050: D/dalvikvm(496): GC_CONCURRENT freed 331K, 5% free 8285K/8711K, paused 97ms+127ms, total 296ms
08-04 02:47:37.340: D/dalvikvm(483): Debugger has detached; object registry had 1 entries
08-04 02:47:37.340: D/dalvikvm(273): Debugger has detached; object registry had 1 entries
08-04 02:47:37.340: D/dalvikvm(614): Debugger has detached; object registry had 1 entries
08-04 02:47:37.340: D/dalvikvm(395): Debugger has detached; object registry had 1 entries
08-04 02:47:37.340: D/dalvikvm(288): Debugger has detached; object registry had 1 entries
08-04 02:47:37.350: D/dalvikvm(258): Debugger has detached; object registry had 1 entries
08-04 02:47:37.350: D/dalvikvm(426): Debugger has detached; object registry had 1 entries
08-04 02:47:37.350: D/dalvikvm(157): Debugger has detached; object registry had 1 entries
08-04 02:47:37.350: D/dalvikvm(548): Debugger has detached; object registry had 1 entries
08-04 02:47:37.350: D/dalvikvm(445): Debugger has detached; object registry had 1 entries
08-04 02:47:37.360: D/dalvikvm(308): Debugger has detached; object registry had 1 entries
08-04 02:47:37.360: D/dalvikvm(381): Debugger has detached; object registry had 1 entries
08-04 02:47:37.360: D/dalvikvm(496): Debugger has detached; object registry had 1 entries
08-04 02:47:37.360: D/dalvikvm(458): Debugger has detached; object registry had 1 entries
08-04 02:47:37.360: D/dalvikvm(353): Debugger has detached; object registry had 1 entries
08-04 02:47:37.360: D/dalvikvm(531): Debugger has detached; object registry had 1 entries
08-04 02:50:20.619: D/dalvikvm(288): GC_CONCURRENT freed 356K, 7% free 8597K/9159K, paused 39ms+7ms, total 121ms
08-04 02:56:24.701: E/ThrottleService(157): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)
08-04 02:58:06.359: D/dalvikvm(288): GC_CONCURRENT freed 402K, 7% free 8578K/9159K, paused 77ms+6ms, total 130ms
08-04 03:00:01.560: D/dalvikvm(381): Debugger has detached; object registry had 1 entries
08-04 03:00:01.570: D/dalvikvm(273): Debugger has detached; object registry had 1 entries
08-04 03:00:01.570: D/dalvikvm(614): Debugger has detached; object registry had 1 entries
08-04 03:00:01.570: D/dalvikvm(395): Debugger has detached; object registry had 1 entries
08-04 03:00:01.580: D/dalvikvm(288): Debugger has detached; object registry had 1 entries
08-04 03:00:01.580: D/dalvikvm(258): Debugger has detached; object registry had 1 entries
08-04 03:00:01.580: D/dalvikvm(426): Debugger has detached; object registry had 1 entries
08-04 03:00:01.580: D/dalvikvm(157): Debugger has detached; object registry had 1 entries
08-04 03:00:01.590: D/dalvikvm(445): Debugger has detached; object registry had 1 entries
08-04 03:00:01.590: D/dalvikvm(458): Debugger has detached; object registry had 1 entries
08-04 03:00:01.590: D/dalvikvm(548): Debugger has detached; object registry had 1 entries
08-04 03:00:01.590: D/dalvikvm(531): Debugger has detached; object registry had 1 entries
08-04 03:00:01.600: D/dalvikvm(483): Debugger has detached; object registry had 1 entries
08-04 03:00:01.600: D/dalvikvm(353): Debugger has detached; object registry had 1 entries
08-04 03:00:01.610: D/dalvikvm(308): Debugger has detached; object registry had 1 entries
08-04 03:00:01.610: D/dalvikvm(496): Debugger has detached; object registry had 1 entries
08-04 03:02:05.292: D/dalvikvm(157): GC_CONCURRENT freed 472K, 46% free 10280K/18951K, paused 76ms+13ms, total 196ms
08-04 03:05:46.020: D/dalvikvm(288): GC_CONCURRENT freed 384K, 7% free 8578K/9159K, paused 33ms+5ms, total 89ms
08-04 03:06:24.740: E/ThrottleService(157): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)
08-04 03:13:22.300: D/dalvikvm(288): GC_CONCURRENT freed 384K, 7% free 8578K/9159K, paused 19ms+5ms, total 87ms

编辑:刚才,我尝试运行它并且它有效(它之前也有效,但大多数时候它没有),这出现在控制台中

[2012-08-04 10:21:35 - RunAndroid] ------------------------------
[2012-08-04 10:21:35 - RunAndroid] Android Launch!
[2012-08-04 10:21:35 - RunAndroid] adb is running normally.
[2012-08-04 10:21:35 - RunAndroid] Performing com.example.runandroid.MainActivity activity launch
[2012-08-04 10:21:41 - RunAndroid] Launch canceled!

然后设备选择器出现了。模拟器和我的设备出现在列表中。如您所见,我取消了它以查看它是否会再次运行,然后我重新运行了程序,然后又回到了问题所在,设备选择器没有出现,控制台上什么也没有。

4

4 回答 4

1

在此处输入图像描述

08-04 02:47:17.510: W/MediaScanner(496): Error opening directory'/mnt/sdcard/.android_secure/', skipping: Permission denied.

添加到 manifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

给模拟器/设备的 sdcard 大小

于 2013-01-22T03:41:41.190 回答
1

尝试独立运行AVD Manager.exe,选择一个模拟器然后启动,最后在eclipse中运行android项目。

于 2012-08-03T02:43:09.617 回答
1

注意线

[2012-07-11 22:13:58 - ha] 未找到启动器活动!它说没有任何活动被赋予 Intent-Filter 作为您的应用程序的 MAIN 和 LAUNCHER Activity

在 AndroidManifest.xml 中,它应该如下所示:

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

在这里阅读更多:

“未找到启动器活动!”是什么意思?

于 2012-08-03T04:54:11.190 回答
0

尝试使用以下步骤运行应用程序,右键单击应用程序->运行方式->运行配置->浏览项目->在目标中选择“始终提示选择设备”->单击应用->单击运行。试试这个,让我知道控制台和 logcat 中发生了什么。

于 2012-08-03T05:22:44.633 回答