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.
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.
In the Project pane select Android, go to app > res > values > themes > themes.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With