Android jAudioTagger 问题-读取 mp3 文件-VerifyError

发布于 2024-09-15 22:08:11 字数 2978 浏览 6 评论 0原文

我有以下错误,但无法解决问题,我正在读取 MP3 文件,并且在尝试写入 MP4 文件时似乎出现以下错误。

AudioFile f = AudioFileIO.read(m_file.get(x));

调用上面并传递第一个 MP3 文件后出现错误

08-27 09:51:47.671: ERROR/dalvikvm(4485): Could not find class     'javax.swing.tree.DefaultMutableTreeNode', referenced from method     org.jaudiotagger.audio.mp4.Mp4TagWriter.write
08-27 09:51:47.671: WARN/dalvikvm(4485): VFY: unable to resolve check-cast 303 (Ljavax/swing/tree/DefaultMutableTreeNode;) in Lorg/jaudiotagger/audio/mp4/Mp4TagWriter;
08-27 09:51:47.671: WARN/dalvikvm(4485): VFY:  rejecting opcode 0x1f at 0x00aa
08-27 09:51:47.671: WARN/dalvikvm(4485): VFY:  rejected Lorg/jaudiotagger/audio/mp4/Mp4TagWriter;.write (Lorg/jaudiotagger/tag/Tag;Ljava/io/RandomAccessFile;Ljava/io/RandomAccessFile;)V
08-27 09:51:47.671: WARN/dalvikvm(4485): Verifier rejected class Lorg/jaudiotagger/audio/mp4/Mp4TagWriter;
08-27 09:51:47.671: WARN/dalvikvm(4485): threadid=17: thread exiting with uncaught exception (group=0x4001da28)
08-27 09:51:47.681: ERROR/AndroidRuntime(4485): Uncaught handler: thread MagentoBackground exiting due to uncaught exception
08-27 09:51:47.781: ERROR/AndroidRuntime(4485): java.lang.VerifyError: org.jaudiotagger.audio.mp4.Mp4TagWriter
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.mp4.Mp4FileWriter.<init>(Mp4FileWriter.java:36)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.prepareReadersAndWriters(AudioFileIO.java:244)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.<init>(AudioFileIO.java:182)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.getDefaultAudioFileIO(AudioFileIO.java:126)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:148)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at it.cloudspace.rhythmrunner.main.getSongs(main.java:115)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at it.cloudspace.rhythmrunner.main.access$3(main.java:103)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at it.cloudspace.rhythmrunner.main$2.run(main.java:62)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at java.lang.Thread.run(Thread.java:1060)
08-27 09:51:47.871: INFO/Process(76): Sending signal. PID: 4485 SIG: 3
08-27 09:51:47.871: INFO/dalvikvm(4485): threadid=7: reacting to signal 3
08-27 09:51:48.271: INFO/dalvikvm(4485): Wrote stack trace to '/data/anr/traces.txt'
08-27 09:51:48.301: ERROR/vending(4501): com.android.vending.api.LocalAssetDatabase.buildPackageNameMap(): Multiple assets with package name com.google.android.apps.unveil
08-27 09:51:48.311: ERROR/vending(4501): com.android.vending.api.LocalAssetDatabase.buildPackageNameMap(): Multiple assets with package name com.amazon.kindle
08-27 09:51:54.061: DEBUG/dalvikvm(3189): GC freed 13924 objects / 712680 bytes in 590ms

I have the following error but cannot workout the problem, i am READING MP3 files and the below error seems to come as it tries to WRITE MP4 files.

AudioFile f = AudioFileIO.read(m_file.get(x));

Error comes after calling the above and passing the first MP3 file

08-27 09:51:47.671: ERROR/dalvikvm(4485): Could not find class     'javax.swing.tree.DefaultMutableTreeNode', referenced from method     org.jaudiotagger.audio.mp4.Mp4TagWriter.write
08-27 09:51:47.671: WARN/dalvikvm(4485): VFY: unable to resolve check-cast 303 (Ljavax/swing/tree/DefaultMutableTreeNode;) in Lorg/jaudiotagger/audio/mp4/Mp4TagWriter;
08-27 09:51:47.671: WARN/dalvikvm(4485): VFY:  rejecting opcode 0x1f at 0x00aa
08-27 09:51:47.671: WARN/dalvikvm(4485): VFY:  rejected Lorg/jaudiotagger/audio/mp4/Mp4TagWriter;.write (Lorg/jaudiotagger/tag/Tag;Ljava/io/RandomAccessFile;Ljava/io/RandomAccessFile;)V
08-27 09:51:47.671: WARN/dalvikvm(4485): Verifier rejected class Lorg/jaudiotagger/audio/mp4/Mp4TagWriter;
08-27 09:51:47.671: WARN/dalvikvm(4485): threadid=17: thread exiting with uncaught exception (group=0x4001da28)
08-27 09:51:47.681: ERROR/AndroidRuntime(4485): Uncaught handler: thread MagentoBackground exiting due to uncaught exception
08-27 09:51:47.781: ERROR/AndroidRuntime(4485): java.lang.VerifyError: org.jaudiotagger.audio.mp4.Mp4TagWriter
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.mp4.Mp4FileWriter.<init>(Mp4FileWriter.java:36)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.prepareReadersAndWriters(AudioFileIO.java:244)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.<init>(AudioFileIO.java:182)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.getDefaultAudioFileIO(AudioFileIO.java:126)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:148)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at it.cloudspace.rhythmrunner.main.getSongs(main.java:115)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at it.cloudspace.rhythmrunner.main.access$3(main.java:103)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at it.cloudspace.rhythmrunner.main$2.run(main.java:62)
08-27 09:51:47.781: ERROR/AndroidRuntime(4485):     at java.lang.Thread.run(Thread.java:1060)
08-27 09:51:47.871: INFO/Process(76): Sending signal. PID: 4485 SIG: 3
08-27 09:51:47.871: INFO/dalvikvm(4485): threadid=7: reacting to signal 3
08-27 09:51:48.271: INFO/dalvikvm(4485): Wrote stack trace to '/data/anr/traces.txt'
08-27 09:51:48.301: ERROR/vending(4501): com.android.vending.api.LocalAssetDatabase.buildPackageNameMap(): Multiple assets with package name com.google.android.apps.unveil
08-27 09:51:48.311: ERROR/vending(4501): com.android.vending.api.LocalAssetDatabase.buildPackageNameMap(): Multiple assets with package name com.amazon.kindle
08-27 09:51:54.061: DEBUG/dalvikvm(3189): GC freed 13924 objects / 712680 bytes in 590ms

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

删除会话 2024-09-22 22:08:11

Android 端口正在落实到位,上述错误是由于某些 Swing 库在 Android 中不可用造成的

An Android port is being put in place, the above error was due to some Swing libraries that aren't available in Android

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文