Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

resource style/Theme.Base not found

Tags:

android

I am getting this error in the android studio when I am trying to build android code into my device?

error: resource style/Theme.Base (aka com.example.android.bluetoothlegatt:style/Theme.Base) not found. error: failed linking references.

like image 306
tshivam Avatar asked Jan 18 '19 11:01

tshivam


People also ask

Where is style xml in android Studio?

Defining Styles This XML file resides under res/values/ directory of your project and will have <resources> as the root node which is mandatory for the style file.

How to change app theme in android?

In the Project pane select Android, go to app > res > values > themes > themes.


1 Answers

Use AppTheme in your manifest file check code and see the line where i will comment

     <application
        android:name=".application.MyApplication"
        android:allowBackup="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:roundIcon="@drawable/app_icon"
        android:supportsRtl="true"
        android:largeHeap="true"
        android:networkSecurityConfig="@xml/network_security_config"
        android:theme="@style/AppTheme">  // here

Check style have to be like this :

<style name="AppTheme" parent="Theme.AppCompat.Light">
       ....customize Theme....
</style>

and Appcompat library should be updated :

implementation 'com.android.support:appcompat-v7:28.0.0'

and check this link also.

like image 128
Abhinav Gupta Avatar answered Oct 11 '22 23:10

Abhinav Gupta