android activity - Error on androidmanifest file when using appcompat -


i been using aide start project apps. , have problem in android manifest file says "aapt: in generated file: error unboung prefix". happened after replaced appcompatactivity activity, changed theme @android:style/theme.appcompatlight.darkactionbar.

i've compile on build.gradle this.

compile 'com.android.support:appcompat-v7:24.2.0' 

here's code androidmanifest file contains error.

<?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> 

and here's mainactivity class.

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);     } } 

hope help.

change xml tag manifest tag:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="com.github.shareme.gwsfluidx"> 

replace packagename yours


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -