If you put an mp3 file in the raw directory in Android studio, it opens as a garbled text file.

Asked 2 years ago, Updated 2 years ago, 166 views

It's just like the title.
After importing mp3 as a text file into the raw folder,
No matter how many times you delete it and import it, it will still appear as a garbled text file.

on first import

Open matching files in associated application

and the radio button to select how to open the file.
I'm in trouble because it hasn't come out since the second time

It would be very helpful if someone could tell me.
Thank you for your cooperation.

android-studio

2022-09-30 21:26

1 Answers

This seems to be the same as my this question.

The first pOpen matching files in associated application で selection configures the association to open a file with the extension .mp3 as a text file, so it opens as a text file after the second time.

This association is due to the Android Studio setting, so in Android Studio, open Settings->Editor->FileType and remove the mp3 setting as the extension to open as a text file.


2022-09-30 21:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.