Android NDK r4 san-angeles problème

Je commence à apprendre le android NDK et j'ai instantanément de problème.

Je'e construit l'outil de la chaîne (qui a pris BEAUCOUP plus longtemps que je l'attendais!!) et j'ai compilé le code C++ avec pas de problèmes, et maintenant je suis en train de construire le code java.

Instantanément je me heurte a un problème. Il y a un fichier "main.xml"

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
<TextView  
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:text="Hello World, DemoActivity"
    />
</LinearLayout>

et j'obtiens les erreurs suivantes:

Description Resource Path Location Type
error: Error: String types not allowed (at 'layout_height' with value 'match_parent'). main.xml /DemoActivity/res/layout line 2 Android AAPT Problem
error: Error: String types not allowed (at 'layout_height' with value 'match_parent'). main.xml /DemoActivity/res/layout line 2 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 'match_parent'). main.xml /DemoActivity/res/layout line 2 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 'match_parent'). main.xml /DemoActivity/res/layout line 7 Android AAPT Problem
error: Error: String types not allowed (at 'layout_width' with value 'match_parent'). main.xml /DemoActivity/res/layout line 7 Android AAPT Problem

Pour que je puisse voir le problème réside dans le fait que ces "match_parent" les chaînes sont là. Quelqu'un sait comment résoudre ce problème?

  • Enlevé le NDK balises. La question aujourd'hui n'a rien à voir avec le NDK ou de développement autochtones. Veuillez envisager de modifier le titre en conséquence!
InformationsquelleAutor Goz | 2010-06-08