请有人帮我在这里找到我的问题......
[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 。我想我会在某个地方重新命名一个字段,下面是我检查的主要文件
<?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文件夹。不是别人......除非你知道自己在做什么,否则不要试试。或者更重要的是,先备份!
答案 0 :(得分:0)
问题在于您的构建/运行配置。请在“常规”选项卡下的“运行/调试配置”屏幕中选中“部署应用程序”复选框。
答案 1 :(得分:0)
尝试在另一个模拟器中测试..或者重新启动eclipse然后检查