Eclipse Android插件不会创建所有必需的文件夹

时间:2012-08-09 17:14:59

标签: android

我正在使用eclipse插件尝试编写一个Android应用程序。我在线查看,并且有一些eclipse没有创建的文件夹(特别是res /)。因此,我无法运行程序任何想法?我也得到这些错误:

[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文件。只有名为R,MainActivity和BuildConfig

的java文件

1 个答案:

答案 0 :(得分:2)

  

eclipse没有创建一些文件夹(特别是res /)

根据您的错误日志输出,res/存在。删除res\layout\activity_wifi_find.out.xml文件,日志中显示的错误将会消失。