1

请有人可以帮我在这里找到我的问题...

[2013-07-15 10:29:36 - Database demo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.AssentApp.V100/com.AssentApp.V100 }
[2013-07-15 10:29:36 - Database demo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-07-15 10:29:39 - Database demo] Starting activity com.AssentApp.V100 on device emulator-5554
[2013-07-15 10:29:40 - Database demo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-07-15 10:29:43 - Database demo] Starting activity com.AssentApp.V100 on device emulator-5554
[2013-07-15 10:29:45 - Database demo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-07-15 10:29:48 - Database demo] Starting activity com.AssentApp.V100 on device emulator-5554
[2013-07-15 10:29:49 - Database demo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.AssentApp.V100/com.AssentApp.V100 }
[2013-07-15 10:29:49 - Database demo] ActivityManager: Error type 3
[2013-07-15 10:29:49 - Database demo] ActivityManager: Error: Activity class {com.AssentApp.V100/com.AssentApp.V100} does not exist.

我假设我的名称不正确,可能在我的 Manifext xml 中。或者也许在其他地方......

查看上面的代码,我看到它在模拟器上启动了包,然后找不到活动类 com.AssentApp.V100。我想我会在某处错误地重命名一个字段,下面是我的 main.xml 以供检查

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost"

>
<TabWidget
android:layout_width="fill_parent" 
android:layout_height="wrap_content"
android:id="@android:id/tabs"
/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
android:paddingTop="70dp"

>
</FrameLayout>
</TabHost>

这是我的清单

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.AssentApp.V100"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<application
    android:icon="@drawable/icon"
    android:label="@string/app_name" >
    <activity
        android:name="com.AssentApp.V100"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".AddEmployee"
        android:label="Add Employee" >
    </activity>
    <activity
        android:name=".GridList"
        android:label="Employees" >
    </activity>
    <activity
        android:name=".PhotoActivity"
        android:label="@string/title_activity_photo" >
    </activity>
    <activity
        android:name=".AudioRecordTest"
        android:label="@string/title_activity_audio_record_test" >
    </activity>
</application>

<uses-sdk android:minSdkVersion="7" />

</manifest>

我认为问题可能与线路有关<action android:name="android.intent.action.MAIN" />,但这只是推测......

这一切都源于试图重命名 SCR 文件夹。对其他人不...除非您知道自己在做什么,否则不要尝试此操作。或者更重要的是,先备份!

4

2 回答 2

0

问题在于您的构建/运行配置。请选中“运行/调试配置”屏幕中“常规”选项卡下的“部署应用程序”复选框。

于 2013-07-15T09:46:56.763 回答
0

尝试在另一个模拟器中测试..或重新启动eclipse然后检查

于 2013-07-15T09:48:08.593 回答