Closed Rc85 closed 2 years ago
What you're experiencing is caused by having a FLIPPER_VERSION=0.75.1
somewhere inside a gradle.proprties
inside your project. That Flipper version is really old and you should instead use at least 0.99.0
which is the correct version to use with 0.66.4
:
Anyone still facing the same issue as it not working for me as well even with FLIPPER_VERSION=0.99.0
Anyone still facing the same issue as it not working for me as well even with FLIPPER_VERSION=0.99.0
What's the exact error message you're facing?
@cortinico I'm getting this error too across 0.99.0 and 0.138.0
When I rollback to 0.75.1 it's fine?
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-flipper:generateDebugRFile'.
> Could not resolve all files for configuration ':react-native-flipper:debugCompileClasspath'.
> Could not find com.facebook.flipper:flipper:0.99.0 # https.
Required by:
project :react-native-flipper
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDevDebugAarMetadata'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
> Could not find com.facebook.flipper:flipper:0.99.0 # https.
Searched in the following locations:
- file:/Users/henrymoulton/.m2/repository/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- file:/Users/henrymoulton/Code/app/node_modules/react-native/android/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- file:/Users/henrymoulton/Code/app/node_modules/jsc-android/dist/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- https://dl.google.com/dl/android/maven2/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- https://repo.maven.apache.org/maven2/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- https://jcenter.bintray.com/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- https://www.jitpack.io/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
- https://maven.google.com/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
Required by:
project :app
project :app > project :react-native-flipper
- https://repo.maven.apache.org/maven2/com/facebook/flipper/flipper/0.99.0 # https/flipper-0.99.0 # https.pom
Not sure what is going on with your setup, but this link is working fine: https://repo.maven.apache.org/maven2/com/facebook/flipper/flipper/0.99.0/ (as Flipper is on Maven Central as expected).
Closing as there we no follow up, no reproducer, and the provided dependency is verified as available on maven central. Feel free to reopen if the issue persist
Any status even I am still getting same issue @cortinico
Same issue, same messages as on henrymoulton's screen
@Aarush-wadhia @IlkhomKurbanov I ran into this today as well and it's a good chance that you're actually affected by jCenter going down / being down today: https://status.gradle.com/incidents/9740r6bzx438
I ended up following the steps from here: https://stackoverflow.com/questions/74258160/is-jcenter-down-permanently-31-oct
Which meant adding mavenCentral() before google()
and jcenter()
in my build.gradle. As well as using patch-package
to patch any other packages having jcenter()
still in their build.gradle. You also might have to try some different version for the FLIPPER_SDK. I ended up with FLIPPER_VERSION=0.99.0
for react-native
0.65.1.
Note: If you use patch-package, running a gradle sync actualy undoes your changes. You'll have to run yarn install
again to have it run as a post-install
script and get all your packages in.
Anyone still facing this issue? I haven't been able to fix this for days :(
I have already this problem with no solution at this moment, if i solve i will type there
In my case, I solved it by doing this procedure
File android/build.gradle :
buildscript {
...
repositories {
...
- jcenter()
+ maven { url "https://maven.aliyun.com/repository/jcenter" }
}
}
allprojects {
+ buildscript {
+ repositories {
+ maven { url "https://maven.aliyun.com/repository/jcenter" }
+ }
+ }
repositories {
...
- jcenter()
+ maven { url "https://maven.aliyun.com/repository/jcenter" }
}
}
In my case, I solved it by doing this procedure
File android/build.gradle :
buildscript { ... repositories { ... - jcenter() + maven { url "https://maven.aliyun.com/repository/jcenter" } } } allprojects { + buildscript { + repositories { + maven { url "https://maven.aliyun.com/repository/jcenter" } + } + } repositories { ... - jcenter() + maven { url "https://maven.aliyun.com/repository/jcenter" } } }
This solution worked for me, thank you
Description
This only happens when I use mavenCentral in
android/build.gradle
. Using jcenter is fine. But jcenter is gonna be removed soon.https://github.com/facebook/flipper/issues/2410
Version
0.66.4
Output of
npx react-native info
Steps to reproduce
Snack, code example, screenshot, or link to a repository
android/build.gradle
android/app.build.gradle (omitted some code)