-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Build fails with react native 0.65 (android only) #2468
Comments
PR already open, but not sure if it's the right fix when reading the comments. |
|
Nop totaly for some usecase, see #2462 (comment) |
Hmm weird, worked for me just adding jcenter back |
I would advice to define the package so other dependencies are not fetched/taken from jCenter anymore. Because jCenter does not allow any updates anymore of any package all other packages should be taken from mavenCentral for example. You can add jcenter to
Hopefully somebody updates android-scalablevideoview to use another repository |
Working now, thank you! |
Thank you! |
It works for me too. So thanks my friend ! |
cd android ` |
Worked! Thank you!🤗✌ |
You can add jcenter to android/build.gradle like this:
|
allprojects { |
Thanks buddy it worked |
Adding jcenter() is not a working solution anymore |
Yes, Same Issue. Execution failed for task ':app:mergeDebugJavaResource'. Could not resolve all files for configuration ':app:debugRuntimeClasspath'. jcenter is deprecated. it's not a permanent solution. It's not available on maven. https://dl.google.com/dl/android/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom |
This needs to be fixed asap. Please update and release. |
If you are like me and cannot wait for a working release. I patched the
For the patch to work what you need to do is:
Now it should work until they release a new stable working version, which I also hope will be soon... Cheers! |
just change your allprojects {
repositories {
.... # Keep the rest
jcenter() {
content {
includeModule("com.yqritc", "android-scalablevideoview")
}
}
}
} |
Hi guys. Script compilation errors: Line 21: gradlePlugin { Line 23: create("react") { Line 24: id = "com.facebook.react" Line 24: id = "com.facebook.react" Line 24: id = "com.facebook.react" Line 24: id = "com.facebook.react" Line 25: implementationClass = "com.facebook.react.ReactPlugin" Line 33: implementation(gradleApi()) Line 34: implementation("com.android.tools.build:gradle:7.1.0") Line 35: implementation("com.google.code.gson:gson:2.8.9") Line 36: implementation("com.google.guava:guava:31.0.1-jre") Line 37: implementation("com.squareup:javapoet:1.13.0") Line 39: testImplementation("junit:junit:4.13.2") Line 41: testRuntimeOnly( Line 48: java { Line 48: java { Line 49: sourceCompatibility = JavaVersion.VERSION_18 Line 50: targetCompatibility = JavaVersion.VERSION_18 18 errors Please help |
The following patch worked for me!
|
Please use the examples and https://github.com/react-native-video/react-native-video-test as reference. Both build without issues. |
I was able to use
|
After running a gradle clean after upgrading Flipper, I get 'no variant found for :react-native-video' and it won't build. Usually the edits you did were enough for me to get it to build, but I can't get react-native-video back into the gradle files. Any ideas? |
Please use release 5.2.1 |
Bug
Android build fails when using react-native-video with react native 0.65.
Platform
Which player are you experiencing the problem on:
Environment info
React native info output:
Library version: 5.1.1
Steps To Reproduce
npx react-native init TestRNVideo
yarn install react-native-video
yarn android
Expected behaviour
The text was updated successfully, but these errors were encountered: