Closed zkz19872009 closed 3 years ago
Please give more detail about how you use it.
Has been introduced into my app implementation 'org.chenliang.oggus:oggus:1.0.0' and compile failed。
in my gradle properties set android.jetifier.blacklist = oggus-1.0.0.jar and compile fail .gradle/caches/modules-2/files-2.1/org.chenliang.oggus/oggus/1.0.0/2223b9ddae6120fa4d4c0076a573d0428033bf68/oggus-1.0.0.jar(org/chenliang/oggus/opus/AudioDataPacket.class) 类文件具有错误的版本 55.0, 应为 52.0 请删除该文件或确保该文件位于正确的类路径子目录中。
OK, this is because oggus are compiled target to Java 11, however you are using Java 8. I can publish a Java 8 compatible version.
To ask a question, the remote control grab opus does not take the lead file, the player can not play the opus format, do you know how to join the header file
Fixed in release 1.1.0.
sir, ERROR: Failed to resolve: org.chenliang.oggus:oggus:1.1.0 Show in Project Structure dialog Affected Modules: app
Sorry, I forgot to publish it to maven repository. It would be fixed, please try again.
sir, i use this: OggOpusStream oggOpusStream = null; try { oggOpusStream = OggOpusStream.from("audio/test03.opus"); } catch (IOException e) { e.printStackTrace(); } IdHeader idHeader = oggOpusStream.getIdHeader(); crash: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'org.chenliang.oggus.opus.IdHeader org.chenliang.oggus.opus.OggOpusStream.getIdHeader()' on a null object reference at com.example.testopus.MainActivity.initOpus(MainActivity.java:36) at com.example.testopus.MainActivity.onCreate(MainActivity.java:26)
This is the problem with your own code.
Compile failed files-2.1/org.chenliang.oggus/oggus/1.0.0/2223b9ddae6120fa4d4c0076a573d0428033bf68/oggus-1.0.0.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)