Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task :react-native-media-kit:compileDebugJavaWithJavac FAILED #154

Open
kanwar002 opened this issue Nov 6, 2020 · 0 comments
Open

Task :react-native-media-kit:compileDebugJavaWithJavac FAILED #154

kanwar002 opened this issue Nov 6, 2020 · 0 comments

Comments

@kanwar002
Copy link

kanwar002 commented Nov 6, 2020

Environment

Environment

  • OS: Windows 10 10.0.18363
  • Node: 15.0.1
  • npm: 6.14.8
  • Watchman: Not Found
  • Xcode: N/A
  • Android Studio: Not Found
    **Packages: **
  • react: 16.13.1 => 16.13.1
  • react-native: ^0.63.3 => 0.63.3

Description

I installed a package react-native-media-kit after installing that package my app is not running. It's showing error

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.5.3.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a 
default version of the build tools.

> Task :react-native-media-kit:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
92 actionable tasks: 2 executed, 90 up-to-date
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\MediaKitPackage.java:22: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:95: error: no suitable constructor found for Event(int,long)
                .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                               ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:111: error: no suitable constructor found for Event(int,long)
                .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                               ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:127: error: no suitable constructor found for Event(int,long)
                .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                               ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:143: error: no suitable constructor found for Event(int,long)
                .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                               ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:159: error: no suitable constructor found for Event(int,long)
                .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                               ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:175: error: no suitable constructor found for Event(int,long)
                .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                               ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java:193: error: no suitable constructor found for Event(int,long)
                  .dispatchEvent(new Event(view.getId(), SystemClock.uptimeMillis()) {
                                 ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int) is not applicable
      (actual and formal argument lists differ in length)
Note: C:\Users\DAWOR\VIRIDE\node_modules\react-native-media-kit\android\src\main\java\com\greatdroid\reactnative\media\player\ReactMediaPlayerViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
3 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-media-kit:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


BUILD FAILED in 20s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
warning: [options] source value 7 is obsolete and will be removed in a future release```

Is there a issue with that package? or it's not supported by my current react native vaersion?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant