Closed codeage closed 2 years ago
You should use desugaring like we do in NewPipe
You should use desugaring like we do in NewPipe
I'm currently working on the NewPipe-legacy project, which has deugaring enabled. as you can see, the logcat above is from the YouTube-legacy application.
Yes, this class is not yet available with Desugar, which has been updated to Java 11 (not released) and include the StandardCharset class: see https://github.com/google/desugar_jdk_libs and https://r8.googlesource.com/r8/+/refs/heads/main.
So you may except something in the coming days, months or weeks.
Yes, this class is not yet available with Desugar, which has been updated to Java 11 (not released) and include the StandardCharset class: see https://github.com/google/desugar_jdk_libs and https://r8.googlesource.com/r8/+/refs/heads/main.
So you may except something in the coming days, months or weeks.
Thank you!
Good news! A new version of Desugar has been released, 1.2.0: see https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md. This will require version 7.3.0-beta03 of the Android Gradle Plugin, according to the changelog.
You will probably able to build soon the legacy app using the latest extractor version, with the Electric Eel version of Android Studio.
Closing as won't fix, as we won't downgrade to older Java version and APIs. Thank you!
StandardCharsets.UTF_8 was added in [API level 19], so it is not supported by older Android systems. Please use Charset.forName("UTF-8") instead.