this is the themes xml code activity_main.java package com.example.Appa import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }--------- ---- and it shows bug like this 29: error: resource style/Theme.Appa.NoActionBar (aka com.example.appa:style/Theme.Appa.NoActionBar) not found. error: failed processing manifest. how to fix this problem ?
this is the themes xml code
activity_main.java
package com.example.Appa
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}---------
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Appa" parent="Theme.AppCompat.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">#FF0000</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
----
and it shows bug like this
29: error: resource style/Theme.Appa.NoActionBar (aka com.example.appa:style/Theme.Appa.NoActionBar) not found.
error: failed processing manifest.
how to fix this problem ?
Step by step
Solved in 2 steps