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

[BUG]: Build error in Android #4170

Closed
Softkeydel opened this issue Sep 13, 2024 · 14 comments
Closed

[BUG]: Build error in Android #4170

Softkeydel opened this issue Sep 13, 2024 · 14 comments

Comments

@Softkeydel
Copy link

Softkeydel commented Sep 13, 2024

Version

6.5.0

What platforms are you having the problem on?

Android

System Version

Android Studio Koala

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

com.brentvatne.react.test.ReactVideoPackage not found
Please suggest

hello_042945

Capture

Reproduction Link

repository link

Reproduction

Step to reproduce this bug are:
Create react native project with below versions

minSdk 24
compileSdk 34
targetSdk 34
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
    "react": "18.2.0",
    "react-native": "0.72.17",
    "react-native-video": "^6.5.0",
@Softkeydel Softkeydel added the bug label Sep 13, 2024
Copy link

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

@github-actions github-actions bot added Platform: Android Missing info Some information from template are missing Repro Provided labels Sep 13, 2024
Copy link

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

Thank you for your bug report. We will review it and get back to you if we need more information.

@freeboub
Copy link
Collaborator

please provide a sample repository which reproduce the issue...

@Softkeydel
Copy link
Author

Softkeydel commented Sep 17, 2024

@freeboub
I'v already shared the repo link in the issue..
While trying to build APK from Android Studio Koala got the issue
https://github.com/Softkeydel/Reproduce.git

@freeboub
Copy link
Collaborator

Sorry, I didn't see the sample, but even without react-native-video it doesn't build...
I just clone the sample, and call yarn && yarn android
If I remove react native video, I have the same issue

olivier@OrdinateOlivier Reproduce % yarn android
yarn run v1.22.22
$ react-native run-android
(node:5041) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
info JS server already running.
info Installing the app...

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

error Failed to install the app.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@freeboub
Copy link
Collaborator

Tried to build with android studio and without react native video, I have other errors with react native svg and reanimated.
I think there is another mistake with your project, not linked to react native video

@Softkeydel
Copy link
Author

Did you tried in with Android Studio Koala??
I've tested the sample project.. The issue is genuine.. Me and my teammates are getting the same issue. Why are you closing the ticket

@freeboub
Copy link
Collaborator

Because nobody can investigate this issue and this is surely not a react native video issue:

  • yarn android doesn't even start.
  • You are the only project to have the issue
  • I have upgraded to koala, I have the issue without react native
    I don't have time to make support on you react native integration.
    Please create a new project from scratch and add react native video. Let me know if you have the same issue, I will reopen the ticket.

@freeboub
Copy link
Collaborator

last test I can do, I remove all dependancies of the sample:

diff --git a/package.json b/package.json
index f8fed71..b55ff74 100644
--- a/package.json
+++ b/package.json
@@ -10,27 +10,9 @@
     "test": "jest"
   },
   "dependencies": {
-    "@react-native-async-storage/async-storage": "^2.0.0",
-    "@react-navigation/drawer": "^6.7.2",
-    "@react-navigation/native": "^6.1.18",
-    "@react-navigation/native-stack": "^6.11.0",
-    "@reduxjs/toolkit": "^2.2.7",
     "react": "18.2.0",
     "react-native": "0.72.17",
-    "react-native-document-picker": "^9.3.1",
-    "react-native-gesture-handler": "^2.19.0",
-    "react-native-linear-gradient": "^2.8.3",
-    "react-native-pager-view": "^6.4.1",
-    "react-native-paper": "^5.12.5",
-    "react-native-paper-dropdown": "^2.3.1",
-    "react-native-reanimated": "^3.15.1",
-    "react-native-safe-area-context": "^4.11.0",
-    "react-native-screens": "^3.34.0",
-    "react-native-svg": "^15.3.0",
-    "react-native-tab-view": "^3.5.2",
-    "react-native-vector-icons": "^10.1.0",
-    "react-native-video": "^6.5.0",
-    "redux-saga": "^1.3.0"
+    "react-native-video": "^6.5.0"
   },
   "devDependencies": {
     "@babel/core": "^7.20.0",

Project build correctly.

@Softkeydel
Copy link
Author

Softkeydel commented Sep 18, 2024

@freeboub
I've updated the repository
You can clone it and replicate the issue

https://github.com/Softkeydel/Reproduce.git

I'd request you to please check the repository with same configuration
node v20.14.0
Use npm install
Then try to build from Android Studio Koala
Use Android Studio default JDK/JRE

IMG-20240918-WA0000

I've tried multiple times created new project and install only react-native-video but got the issue each & every time.

I'd request you to please check the repository with same configuration

Copy link

Thank you for your bug report. We will review it and get back to you if we need more information.

@Softkeydel
Copy link
Author

@freeboub
Could you please check

@freeboub
Copy link
Collaborator

@freeboub
Could you please check

No.. I tried the update, it works on my side... Please create a sample from scratch and compare with your sample and please double check what is problematic with your environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants