api.video-reactnative-live-stream icon indicating copy to clipboard operation
api.video-reactnative-live-stream copied to clipboard

[Bug]: Build failure on new project

Open fbinz opened this issue 1 year ago • 8 comments

Version

v1.2.3

Which operating systems have you used?

  • [X] Android
  • [ ] iOS

Environment that reproduces the issue

Does not depend on environment

Is it reproducible in the example application?

No

RTMP Server

None required

Reproduction steps

To reproduce:

  1. Create new react-native app: npx react-native init react_native_test
  2. Install package as per documentation: yarn add @api-video/react-native-livestream
  3. Try do build and run application on android: yarn android

Expected result

A successfully running example application.

Actual result

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tasks'.
> Could not create task ':api.video_react-native-livestream:compileDebugAndroidTestKotlin'.
   > Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
error Failed to install the app. Command failed with exit code 1: ./gradlew tasks FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':tasks'.
> Could not create task ':api.video_react-native-livestream:compileDebugAndroidTestKotlin'. > Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method. * 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. * Get more help at https://help.gradle.org BUILD FAILED in 5s
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :gradle-plugin:inspectClassesForKotlinIC
> Task :tasks FAILED
6 actionable tasks: 6 executed.
error Command failed with exit code 1.

Additional context

No response

Relevant logs output

No response

fbinz avatar Jul 18 '23 06:07 fbinz

I tried to get the plugin running with a fresh RN 0.72.x install the other day and can confirm that the app won't build.

Nonag avatar Jul 18 '23 07:07 Nonag

Hi,

The project and its dependencies are getting too old. We will have to update the project but it requires to support both new and old RN architecture. It is not an easy upgrade. Also, Swift is still not supported with the new architecture (unless on 0.72.2 and xcode 14.3) and native part is unfortunately in Swift. We don't plan to migrate to objective-c because it looks like a backward development.

I am currently focusing on upgrading one of api.video RN library. I will start to work on this, when I will have the time.

ThibaultBee avatar Aug 04 '23 11:08 ThibaultBee

Any workaround for this? Can I just downgrade RN for now? Which version should I set it to?

soemarko avatar Oct 01 '23 14:10 soemarko

any update on this? I get this error on RN version 0.72 and api.video version 1.2.4.

Veryinheart avatar Jan 04 '24 03:01 Veryinheart

Hi,

We are currently in the process of upgrading to 0.73 (and support new architecture). See https://github.com/apivideo/api.video-reactnative-live-stream/pull/67 instead.

ThibaultBee avatar Jan 04 '24 10:01 ThibaultBee

Hi,

We are currently in the process of upgrading to 0.73 (and support new architecture). See #67 instead.

Hi, I see it is in the process. do you have ETA of this? how long does it take to be fixed? many thanks

Veryinheart avatar Feb 22 '24 01:02 Veryinheart

The dev is done. I will tackle a last issue with the Android preview.

But... the release is not ready yet. We are expecting feedbacks/tests from the community before releasing. See https://github.com/apivideo/api.video-reactnative-live-stream/pull/67

ThibaultBee avatar Feb 22 '24 08:02 ThibaultBee

Could you test with 2.0.0?

ThibaultBee avatar May 03 '24 09:05 ThibaultBee

Missing type definition?

Could not find a declaration file for module '@api.video/react-native-livestream'. '/Users/s/App/Livestream/node_modules/@api.video/react-native-livestream/lib/commonjs/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/api.video__react-native-livestream` if it exists or add a new declaration (.d.ts) file containing `declare module '@api.video/react-native-livestream';

And it used to have LiveStreamMethods for ref type, is it gone now?

soemarko avatar May 07 '24 09:05 soemarko

Hi, Type have been renamed ApiVideo..... LiveStreamMethods has been renamed ApiVideoLiveStreamMethods. It is in the CHANGELOG.md

ThibaultBee avatar May 13 '24 07:05 ThibaultBee

Gotcha, but the type definition is still missing?

soemarko avatar May 15 '24 10:05 soemarko

Yes. But fixed in https://github.com/apivideo/api.video-reactnative-live-stream/pull/77

ThibaultBee avatar May 15 '24 11:05 ThibaultBee

I am closing this issue as the initial issue is resolved with 2.0.0.

ThibaultBee avatar May 15 '24 11:05 ThibaultBee