我下载了一个Android应用程序,所以我可以学习如何构建地图应用程序,我需要一些帮助让这个运行良好。我添加了必要的库,并配置了AVD。现在我需要让它运行但我仍然遇到下面的错误,需要一些帮助来解决这个问题。做项目清理并没有帮助解决这个问题。
在这种情况下,我在哪里寻找问题?我删除了main.xml.out文件,运行它,重新创建它然后同样的错误。我该怎么做才能解决主要问题?它可能是什么?
---this is the content of my main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0yNvLwdK_rMeMIYkMdOTNTttBcxQ0O_rgNLE_Mw"/>
</FrameLayout>
</LinearLayout>
这是错误日志
[2012-08-04 10:07:43 - SDK Manager] Created AVD 'MAPAPP1' based on Android 2.1, ARM (armeabi) processor,
[2012-08-04 10:07:43 - SDK Manager] with the following hardware config:
[2012-08-04 10:07:43 - SDK Manager] hw.lcd.density=240
[2012-08-04 10:07:43 - SDK Manager] vm.heapSize=24
[2012-08-04 10:07:58 - SDK Manager] SD Card already present with same size, was not changed.
[2012-08-04 10:07:58 - SDK Manager] Updated AVD 'MapApp' based on Google APIs (Google Inc.), ARM (armeabi) processor,
[2012-08-04 10:07:58 - SDK Manager] with the following hardware config:
[2012-08-04 10:07:58 - SDK Manager] hw.lcd.density=240
[2012-08-04 10:07:58 - SDK Manager] vm.heapSize=24
[2012-08-04 10:47:07 - com.shawnbe.mallfinder.MallFinderActivity] Error in an XML file: aborting build.
[2012-08-04 10:47:40 - com.shawnbe.mallfinder.MallFinderActivity] res\layout\main.xml:0: error: Resource entry main is already defined.
[2012-08-04 10:47:40 - com.shawnbe.mallfinder.MallFinderActivity] res\layout\main.out.xml:0: Originally defined here.
[2012-08-04 10:47:40 - com.shawnbe.mallfinder.MallFinderActivity] C:\Development\JAVAWorkSpace\com.shawnbe.mallfinder.MallFinderActivity\res\layout\main.out.xml:1: error: Error parsing XML: no element found
[2012-08-04 10:48:16 - com.shawnbe.mallfinder.MallFinderActivity] Error in an XML file: aborting build.
[2012-08-04 10:49:25 - SDK Manager] Deleting file C:\Users\Ogechineke\.android\avd\MapApp.ini
[2012-08-04 10:49:25 - SDK Manager] Deleting folder C:\Users\Ogechineke\.android\avd\MapApp.avd
[2012-08-04 10:49:25 - SDK Manager] AVD 'MapApp' deleted.
[2012-08-04 10:49:35 - com.shawnbe.mallfinder.MallFinderActivity] Error in an XML file: aborting build.
有没有办法配置它,以便在错误/退出时删除生成的xml.out文件?
答案 0 :(得分:1)
使用Eclipse和Android XML文件构建时有时会出错。
当我打开并选择了XML文件并尝试运行Android项目时,我遇到了这个错误。我希望我更了解Eclipse为什么会生成这些.out文件。如果这样可以解决您的问题,请告诉我们。