0

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 ファイルがエラー/終了時に削除されるようにこれを構成する方法はありますか?

4

1 に答える 1

1

Eclipse および Android XML ファイルでビルドすると、エラーが発生することがあります。

  • すべての .xml.out ファイルを削除します
  • すべてを保存してきれいにする
  • すべての XML ファイルを閉じます
  • パッケージエクスプローラーでプロジェクトをクリックして強調表示します
  • 次に、実行してみてください

XML ファイルを開いて選択し、Android プロジェクトを実行しようとすると、このエラーが発生しました。Eclipse がこれらの .out ファイルを生成する理由についてもっと知りたいと思います。これで問題が解決したかどうかをお知らせください。

于 2012-08-04T16:11:10.480 に答える