yausername / youtubedl-android

youtube-dl for android
GNU General Public License v3.0
947 stars 172 forks source link

Unable to Load JDK7 Types (annotations, java.nio.file.Path): no Java7 support added #208

Closed deniscerri closed 1 year ago

deniscerri commented 1 year ago

The package runs fine on a java project but not in a jetpack compose one

image

JunkFood02 commented 1 year ago

Did you forget to call YoutubeDL.init()?

deniscerri commented 1 year ago
      YoutubeDL.getInstance().init(this);
      FFmpeg.getInstance().init(this);
      Aria2c.getInstance().init(this);

      var y = YoutubeDLRequest("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
          .addOption("-j")
          .addOption("--skip-download")
          .addOption("R", "1")
      val res = YoutubeDL.getInstance().execute(y)
      Log.e("TAG", res.toString());
      Greeting("Android")

Its a fresh compose app. Just added the dependencies. Builds fine but when i run it, it shoots the error

deniscerri commented 1 year ago

Fixed it. I had to reinstall jdk 11