我使用Eclipse插件嘗試編寫一個Android應用程序,我在網上查找,並且有一些eclipse沒有創建的文件夾(特別是res /)。 ,我不能永遠運行該程序的任何想法,我也得到這些錯誤:?Eclipse Android插件不會創建所有必需的文件夾
[2012-08-09 12:17:08 - WifiCheck] Could not find WifiCheck.apk!
[2012-08-09 12:17:16 - Wififind] res\layout\activity_wifi_find.xml:0: error: Resource entry activity_wifi_find is already defined.
[2012-08-09 12:17:16 - Wififind] res\layout\activity_wifi_find.out.xml:0: Originally defined here.
[2012-08-09 12:17:16 - Wififind] C:\Users\Law\workspace\Wififind\res\layout\activity_wifi_find.out.xml:1: error: Error parsing XML: no element found
[2012-08-09 12:17:18 - Wififind] res\layout\activity_wifi_find.xml:0: error: Resource entry activity_wifi_find is already defined.
[2012-08-09 12:17:18 - Wififind] res\layout\activity_wifi_find.out.xml:0: Originally defined here.
[2012-08-09 12:17:18 - Wififind] C:\Users\Law\workspace\Wififind\res\layout\activity_wifi_find.out.xml:1: error: Error parsing XML: no element found
[2012-08-09 12:18:04 - Wififind] R.java was removed! Recreating R.java!
[2012-08-09 12:18:04 - Wififind] res\layout\activity_wifi_find.xml:0: error: Resource entry activity_wifi_find is already defined.
[2012-08-09 12:18:04 - Wififind] res\layout\activity_wifi_find.out.xml:0: Originally defined here.
[2012-08-09 12:18:04 - Wififind] C:\Users\Law\workspace\Wififind\res\layout\activity_wifi_find.out.xml:1: error: Error parsing XML: no element found
[2012-08-09 12:18:46 - Wififind] res\layout\activity_wifi_find.xml:0: error: Resource entry activity_wifi_find is already defined.
[2012-08-09 12:18:46 - Wififind] res\layout\activity_wifi_find.out.xml:0: Originally defined here.
[2012-08-09 12:18:46 - Wififind] C:\Users\Law\workspace\Wififind\res\layout\activity_wifi_find.out.xml:1: error: Error parsing XML: no element found
[2012-08-09 12:18:47 - Wififind] res\layout\activity_wifi_find.xml:0: error: Resource entry activity_wifi_find is already defined.
[2012-08-09 12:18:47 - Wififind] res\layout\activity_wifi_find.out.xml:0: Originally defined here.
[2012-08-09 12:18:47 - Wififind] C:\Users\Law\workspace\Wififind\res\layout\activity_wifi_find.out.xml:1: error: Error parsing XML: no element found
[2012-08-09 12:32:55 - WifiCheck] ------------------------------
[2012-08-09 12:32:55 - WifiCheck] Android Launch!
[2012-08-09 12:32:55 - WifiCheck] adb is running normally.
[2012-08-09 12:32:55 - WifiCheck] Could not find WifiCheck.apk!
編輯:有沒有XML文件只是Java文件稱爲R,MainActivity和BuildConfig
我想你正在編譯並嘗試運行這些佈局文件,刪除所有out.xml文件,並編譯和運行項目 - 右鍵單擊項目名稱,然後運行它。 – rajpara 2012-08-09 17:20:01