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.
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.
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.
Either change:
style name="AppBaseTheme"
to
style name="AppTheme"
in your styles.xml file. Or change:
android:theme="@style/AppTheme"
to
android:theme="@style/AppBaseTheme"
in your manifest application tag.
Both should be the same. Basically, your app is trying to use AppBaseTheme which doesn't exist.