I am inserting a media file for a tutorial. I added a raw folder and copy pasted the media file in the raw folder. i see an error that saws "File was located in the wrong encoding: 'UTF-8" I can run the app smoothly but it never plays my media file. I tried to reload the encoding but it causes my app to mysteriously return to my phone's home screen. Please help. I also tested this on a different project and i managed to get 1 song to work. However the other songs still are in wrong encoding and when I try to reload it, android studio freezes for a while. If it helps this is where I got my music https://www.bensound.com/ This is my code: Media file(Very weird)
ID3 CTYER 2016 TDAT 1401 TIME 1419 PRIV W XMP <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c111 79.158325, 2015/09/10-01:10:20 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:creatorAtom="http://ns.adobe.com/creatorAtom/1.0/"
xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmpMM:InstanceID="xmp.iid:4f8bdd82-b23d-47f0-a030-79c78178f88e"
xmpMM:DocumentID="c165b52d-e9ca-0ec6-e406-ebf300000047"
xmpMM:OriginalDocumentID="xmp.did:54c715de-270a-4ec2-bfde-7e5d39a048b3"
xmp:MetadataDate="2016-01-14T14:19:34-08:00"
xmp:ModifyDate="2016-01-14T14:19:34-08:00"
xmp:CreatorTool="Adobe Adobe Media Encoder CC (Macintosh)"
xmp:CreateDate="2016-01-14T14:19:04-08:00"
xmpDM:audioSampleRate="-1"
xmpDM:audioSampleType="16Int"
xmpDM:audioChannelType="Stereo"
xmpDM:startTimeScale="30000"
xmpDM:startTimeSampleSize="1001"
dc:format="MP3">
<xmpMM:History>
<rdf:Seq>
<rdf:li
stEvt:action="saved"
stEvt:instanceID="abdb65d6-add1-4884-ae3a-53b600000074"
stEvt:when="2016-01-14T14:19:34-08:00"
stEvt:softwareAgent="Adobe Adobe Media Encoder CC (Macintosh)"
stEvt:changed="/"/>
<rdf:li
stEvt:action="created"
stEvt:instanceID="xmp.iid:80538dc7-efe5-4e6d-8702-e2a00e50f759"
stEvt:when="2016-01-14T14:18-08:00"
stEvt:softwareAgent="Adobe Adobe Media Encoder CC (Macintosh)"/>
<rdf:li
stEvt:action="saved"
stEvt:instanceID="xmp.iid:9a7174b0-cbaa-4e93-aa3a-3cefb9771883"
stEvt:when="2016-01-14T14:19:34-08:00"
stEvt:softwareAgent="Adobe Adobe Media Encoder CC (Macintosh)"
stEvt:changed="/"/>
<rdf:li
stEvt:action="saved"
stEvt:instanceID="xmp.iid:4f8bdd82-b23d-47f0-a030-79c78178f88e"
stEvt:when="2016-01-14T14:19:34-08:00"
stEvt:softwareAgent="Adobe Adobe Media Encoder CC (Macintosh)"
stEvt:changed="/metadata"/>
</rdf:Seq>
</xmpMM:History>
<xmpMM:Ingredients>
<rdf:Bag>
<rdf:li
stRef:instanceID="a5bea526-6192-792c-f200-1d630000006a"
stRef:documentID="0a5d55a5-cbaa-e20b-9f5a-1d3f0000003d"
stRef:fromPart="time:14222169561600f254016000000d339026688000f254016000000"
stRef:toPart="time:0d339026688000f254016000000"
stRef:filePath="00002.MTS"
stRef:maskMarkers="None"/>
</rdf:Bag>
</xmpMM:Ingredients>
<xmpMM:Pantry>
<rdf:Bag>
<rdf:li>
<rdf:Description
xmpMM:InstanceID="a5bea526-6192-792c-f200-1d630000006a"
xmpMM:DocumentID="0a5d55a5-cbaa-e20b-9f5a-1d3f0000003d"
xmpMM:OriginalDocumentID="xmp.did:e0079809-312a-4e7d-a92d-84f92a113400"
xmp:MetadataDate="2016-01-14T14:18-08:00"
xmp:ModifyDate="2016-01-14T14:18-08:00">
<xmpMM:History>
<rdf:Seq>
<rdf:li
stEvt:action="saved"
stEvt:instanceID="a5bea526-6192-792c-f200-1d630000006a"
stEvt:when="2016-01-14T14:18-08:00"
stEvt:softwareAgent="Adobe Adobe Media Encoder CC (Macintosh)"
stEvt:changed="/"/>
</rdf:Seq>
</xmpMM:History>
</rdf:Description>
</rdf:li>
</rdf:Bag>
</xmpMM:Pantry>
<xmpMM:DerivedFrom
stRef:instanceID="xmp.iid:80538dc7-efe5-4e6d-8702-e2a00e50f759"
stRef:documentID="xmp.did:80538dc7-efe5-4e6d-8702-e2a00e50f759"
stRef:originalDocumentID="xmp.did:80538dc7-efe5-4e6d-8702-e2a00e50f759"/>
<creatorAtom:windowsAtom
creatorAtom:extension=".prproj"
creatorAtom:invocationFlags="/L"/>
<creatorAtom:macAtom
creatorAtom:applicationCode="1347449455"
creatorAtom:invocationAppleEvent="1129468018"
creatorAtom:posixProjectPath="/Volumes/Justine/BAND/Vocabulary Audio Assets/Miwok Vocab Audio.prproj"/>
<xmpDM:projectRef
xmpDM:type="movie"/>
<xmpDM:duration
xmpDM:value="40"
xmpDM:scale="1001/30000"/>
<xmpDM:startTimecode
xmpDM:timeFormat="2997DropTimecode"
xmpDM:timeValue="00;00;00;00"/>
<xmpDM:altTimecode
xmpDM:timeValue="00;00;00;00"
xmpDM:timeFormat="2997DropTimecode"/>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?> ���@ ��A�BCJ���=�HE$c��� ��cp�� �����B��H���肧�5�c$���c��Ps�D&�ƬX�=>���;O N���� �\P�mB����������������������������������������������������������������������������������������������m��w" <*z�ɠ,��
��?L�
�KR�=�v4X�X4-�"�a4��ɲ_wb!*@��C�d�����U�1}I�+��z�������Z�imB��B��� Oٴ���
��Q܈ �U�&���h4��3d+a-JLd�h1�� `#I`ж8�%���_&�}݈���O�u��b�+O�V|��'�x�r�������;�wz�k���opm�[T"?f�J�D���@ �=F�j��Ǩ�c-\���� J���a)-�7%D]D�u���ۮP�?3dƚT���@�rOr �Qx�u��{�C��U ÏK`i
Z W�X�b�I��E�<��`
�J���[��ֺ+Z(u���dt�t.(4�(R��Kz�96�]��7���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������n7#��ID��Qr]A�C2��8O�� ���� �aP���Ŝ�5�^%s�����w�@0���CV����'��bbQtO$�tR�dV벵��֊}o�_�4��
-�T�tR���M�W{������������������e�;I"��x����>� �Dr���Ŕ�QT&�(BU���
�J�f�j�f�4g�+���j���:�+,) �p�2�l=*��V��^�
Make sure the media file is a valid media file and can be played by other media players such as vlc media player. It is recommended that you convert your audio file to mp3 format and use it in the project.