Java-MP3 文件显示初始化错误

Java-MP3File showing initialistaion error

我正在使用来自 http://javamusictag.sourceforge.net/ 的 java 库 (jid3lib-0.5.4.jar) 来获取类似这样的 mp3 文件的歌词 :-

    File f= new File(Fragmentactivity.songpaths.get(3)); //file path is correct
                Toast.makeText(getContext(), ""+dstg.getName(), Toast.LENGTH_LONG).show()   ;

                try { 
MP3File d=null;
                if(f.isFile()==true&&f.exists()==true&&f.canWrite()==true)
                     d=new MP3File(dstg.getAbsoluteFile(),false);//here error coming string out of bound exception
                      Lyrics3v2 tag = new Lyrics3v2(d.getLyrics3Tag());
                    Toast.makeText(getContext(), ""+tag.getSongLyric(), Toast.LENGTH_LONG).show()   ;
                } catch (IOException e1) {
                    Toast.makeText(getContext(), "tag prob upper", Toast.LENGTH_LONG).show()    ;

                    } 

                catch (TagException e1) {
                    Toast.makeText(getContext(), "tag prob", Toast.LENGTH_LONG).show()  ;

                }

但显示初始化错误。 谁能告诉我为什么会这样?

提前致谢:)。

据我所知,如果您 运行 在 Micromax 设备上使用版本 4.2.1 的应用程序,您可能会遇到这个 java.lang.StringIndexOutOfBoundsException 因为它似乎是该特定版本中的制造商错误对于 Micromax 设备。当我不得不在启动画面中播放视频时,同样的问题发生在我身上,并且在该特定版本的 Micromax 设备中出现相同的错误。以下是同一问题的链接。

java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

https://groups.google.com/forum/#!topic/android-developers/-WP6uxDebm8

因此,请尝试调试 Micromax 4.2.1 版以外的应用程序,希望能奏效。