0
我下載了一個android應用程序,所以我可以學習如何構建地圖應用程序,並且我需要一些幫助才能使其正常運行。我已經添加了必要的庫,並配置了AVD。現在我需要讓它運行,但我一直在遇到下面的錯誤,需要一些幫助來找出這個問題。清理項目並沒有幫助解決這個問題。XML文件中的Java錯誤:正在中止構建
在這種情況下,我在哪裏尋找問題?我刪除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的方式?
謝謝。那就是訣竅。 – Kobojunkie 2012-08-04 16:38:32