請能有人幫我在這裏找到了我的問題...錯誤Eclipse的Android應用程序
[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文件夾。不要別人......除非你知道自己在做什麼,否則不要試試這個。或者更重要的是,先備份一下!
發表您的.java代碼,該活動 –
你的主要活動名稱和清單包是相同的。或者您的活動名稱不正確或清單文件中的軟件包名稱。嘗試在清單中將第二行修改爲
足夠接近... :)這是我的'活動 android:name ='這不是我的main.xml中的正確java文件...非常感謝您指點我正確的方向:) –