Ich habe mit Hilfe von aide einige Projekt-Apps gestartet. Und ich habe ein Problem in Android Manifest-Datei, die sagt "aapt: In generierte Datei: Fehler ohne Präfix". Nachdem ich AppCompatActivity von Activity ersetzt und das Theme in @android: style/Theme.AppCompatLight.DarkActionBar geändert habe.Fehler in der Androidmanifest-Datei bei der Verwendung von appcompat
Ich habe auch kompilieren auf build.gradle dies.
compile 'com.android.support:appcompat-v7:24.2.0'
Hier ist der Code von AndroidManifest-Datei, die Fehler enthält.
<?xml version="1.0" encoding="utf-8"?>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Und hier ist die MainActivity Klasse.
package com.mycompany.lenovoplus;
import android.os.*;
import android.support.v7.app.*;
public class MainActivity extends ActionBarActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Hoffe jemand helfen.