Hallo,
Ich weiß, dieser Fehler ist ziemlich bekannt, aber dennoch haben die Lösungen bei google nichts gebracht, hier erstmal ein bisschen Code:
[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"
androidrientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
[/XML]
[XML]
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, TestAppActivity!</string>
<string name="app_name">TestApp</string>
</resources>
[/XML]
Folgende Lösungen habe ich bereits ausprobiert:
Das hat aber alles nicht geholfen, Eclipse erzeugt die R.java Klasse nicht, bei mir ist gem eh komplett leer, ich weiß langsam echt nicht mehr weiter, hoffe ihr könnt mir helfen.
Gruß Gossi
Ich weiß, dieser Fehler ist ziemlich bekannt, aber dennoch haben die Lösungen bei google nichts gebracht, hier erstmal ein bisschen Code:
Java:
import android.app.Activity;
import android.os.Bundle;
public class TestAppActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.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"
androidrientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
[/XML]
[XML]
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, TestAppActivity!</string>
<string name="app_name">TestApp</string>
</resources>
[/XML]
Folgende Lösungen habe ich bereits ausprobiert:
- import android.R entfernt
- Projekt clean und build
- Die .xml-Files verändert und neu gespeichert
- Neues Projekt angelegt
- Run versucht
Das hat aber alles nicht geholfen, Eclipse erzeugt die R.java Klasse nicht, bei mir ist gem eh komplett leer, ich weiß langsam echt nicht mehr weiter, hoffe ihr könnt mir helfen.
Gruß Gossi
Zuletzt bearbeitet von einem Moderator: