For questions related to the usage and features that are specific to version 4.2 of Android Studio - the official IDE targeted at Android development. When using this tag also include the more generic [android-studio] tag. Do NOT use this tag for questions about programming for Android in general; instead use the [android] tag.
Questions tagged [android-studio-4.2]
65 questions
-1
votes
2 answers
How to use a String stored in sharedPreference?
I have this two methods "saveCurrentPlayer" and "loadCurrentPlayer" in a class "PlayersActivity" to save and load a String.
public void saveCurrentPlayer(){
SharedPreferences preferences = getSharedPreferences("currentPlayer",…

Javierungo
- 81
- 9
-1
votes
1 answer
Lifecycle never pass through onCreate
I have two computers, both with same hardware and Android Studio settings.
When I build the app on the first, the app works well, but when I build the app on the second, some parts of the app lifecycle just don't work.
Example: the app never pass…

Matheus Souza
- 3
- 1
-1
votes
1 answer
How to resolve `java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException` in Android Studio v4.2
Getting java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException after upgrading Android studio to v4.2
Everything was fine in v4.1.3 and this started after update.
It ends with Compilation with Kotlin compile daemon was not successful error.

Shivaprasad Bhat
- 43
- 5
-2
votes
2 answers
How to interchange images in imageview in android studio?
If I want to change a image to another by the click of a button and then back to the previous image again by the click of the same button on imageview in android studio how to do that in short and easiest way? As I am new to it I am not familiar…

Preyum Kumar
- 9
- 4
-2
votes
1 answer
After Upgrade to Android Studio 4.2, unable to debug my code
The previous version debugger working fine but upgraded to android studio 4.2 version unable to debug the code.
Error with like Debugger process finished with exit code 127.
I tried with invalidating caches/restart the android studio. Still not…

Subratsss
- 777
- 6
- 12