2012-10-19 73 views
0

我想讓我的應用程序在兩個按鈕之間切換。第一個活動出現了,我可以點擊按鈕,但隨後會彈出一個通知,提示「不幸的是,項目名稱已停止。」找不到gridlayout_v7.apk

這是在控制檯上出現的錯誤:

[2012-10-18 09:54:46 - gridlayout_v7] Could not find gridlayout_v7.apk! 

這是控制檯職位的休息:

[2012-10-18 09:54:38 - PersonalLibrary] Android Launch! 
[2012-10-18 09:54:38 - PersonalLibrary] adb is running normally. 
[2012-10-18 09:54:38 - PersonalLibrary] Performing com.balaka.personallibrary.LibraryMenu activity launch 
[2012-10-18 09:54:38 - PersonalLibrary] Automatic Target Mode: Preferred AVD 'test' is available on emulator 'emulator-5554' 
[2012-10-18 09:54:38 - PersonalLibrary] Uploading PersonalLibrary.apk onto device 'emulator-5554' 
[2012-10-18 09:54:39 - PersonalLibrary] Installing PersonalLibrary.apk... 
[2012-10-18 09:54:46 - PersonalLibrary] Success! 
[2012-10-18 09:54:46 - gridlayout_v7] Could not find gridlayout_v7.apk! 
[2012-10-18 09:54:46 - PersonalLibrary] Starting activity com.balaka.personallibrary.LibraryMenu on device emulator-5554 
[2012-10-18 09:54:48 - PersonalLibrary] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.balaka.personallibrary/.LibraryMenu } 

我試圖在網上找到答案,其他的地方,但沒有提及該文件。

+0

是否在AndroidMenifest.xml文件中添加了新的活動? – Akshay

+0

是的,是這樣的:「<活動 機器人:標籤=‘@字符串/庫’ 機器人:名字=‘庫’> \t \t」 – jayjay10629

+0

請問您的應用程序使用任何第三方庫? – Egor

回答

0

根據this answer,您需要將項目依賴項移除到gridlayout_v7,並將依賴項添加到gridlayout_v7作爲項目屬性中的「Android」依賴項。這解決了我的問題。