0

最終的にサンプル phonegap プロジェクトを実行しましたが、index.html で何かを変更したいので、このエラーが発生します。

 [2012-08-11 17:04:46 - s] W/ResourceType( 9484): Bad XML block: header size 60 or total size 0 is larger than data size 0
    [2012-08-11 17:04:46 - s] C:\Users\TOomo\workspace\s\res\layout\activity_test.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '@string/hello_world').
    [2012-08-11 17:04:46 - s] C:\Users\TOomo\workspace\s\res\menu\activity_test.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '@string/menu_settings').

なぜなのかご存知ですか?

4

2 に答える 2

0

「res」フォルダをクリックして、「values」に移動します。「文字列」というファイルを開きます。そこに「hello_world」という文字列と「menu_settings」という別の文字列が設定されていることを確認してください。

于 2012-08-11T07:33:06.973 に答える
0

次のような値で Strings new_game を定義する必要があります

あなたの文字列 あなたの文字列はこれを参照してください

値のxmlファイルを作成できます-Eclipseを使用している場合は、プロジェクトを右クリックしてその他を選択し、そこでandroid xmlファイルを選択します。次に、指定されたウィンドウでリソースタイプを値として選択します。

于 2012-08-11T07:16:27.853 に答える