I have write simple TAG like this:
private static final String TAG = "MainActivity";
String is deprecated
Is there any alternative way available to use String
?
As per comment in this java-lang-string-is-deprecated-in-android-studio question,
Remove folder .AndroidStudioX.X in your User folder and Restart IDE.
NOTE:
AndroidStudioX.X
means if you are using Android Studio version 3.4 then .AndroidStudio3.4 will be there.Path will be like Windows :
C:\Users\<PCNAME>\.AndroidStudio3.4
Linux/Ubuntu :
/home/yourname/.AndroidStudio3.4
Hope it will be helpful to you.
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