Skip to content Skip to sidebar Skip to footer

'java.lang.string' Is Deprecated In Android

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?

Solution 1:

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.

Post a Comment for "'java.lang.string' Is Deprecated In Android"