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

Android build failed: 'Failed to list versions for com.facebook.react:react-native.' #35136

Closed
aamagda opened this issue Oct 30, 2022 · 273 comments
Closed
Labels

Comments

@aamagda
Copy link
Contributor

aamagda commented Oct 30, 2022

Description

  • What went wrong:
    Could not determine the dependencies of task ':app:compileDebugKotlin'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not resolve com.facebook.react:react-native:+.
Required by:
project :app
project :app > project :react-native-push-notification
project :app > project :react-native-code-push
project :app > project :react-native-async-storage_async-storage
project :app > project :react-native-community_blur
project :app > project :react-native-community_clipboard
project :app > project :react-native-community_datetimepicker
project :app > project :react-native-community_masked-view
project :app > project :react-native-community_netinfo
project :app > project :react-native-community_picker
project :app > project :react-native-firebase_analytics
project :app > project :react-native-firebase_app
project :app > project :react-native-firebase_crashlytics
project :app > project :sumsub_react-native-mobilesdk-module
project :app > project :react-native-action-sheet
project :app > project :react-native-appsflyer
project :app > project :react-native-camera
project :app > project :react-native-config
project :app > project :react-native-device-info
project :app > project :react-native-fbsdk-next
project :app > project :react-native-file-viewer
project :app > project :react-native-fs
project :app > project :react-native-geolocation-service
project :app > project :react-native-gesture-handler
project :app > project :react-native-get-random-values
project :app > project :react-native-haptic-feedback
project :app > project :react-native-idfa
project :app > project :react-native-image-crop-picker
project :app > project :react-native-image-picker
project :app > project :react-native-maps
project :app > project :react-native-permissions
project :app > project :react-native-safe-area-context
project :app > project :react-native-screens
project :app > project :react-native-set-soft-input-mode
project :app > project :react-native-share
project :app > project :react-native-shared-element
project :app > project :react-native-sms-retriever
project :app > project :react-native-splash-screen
project :app > project :react-native-svg
project :app > project :react-native-text-input-mask
project :app > project :react-native-vector-icons
project :app > project :react-native-version-number
project :app > project :react-native-webview
project :app > project :react-native-yamap
> Failed to list versions for com.facebook.react:react-native.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
> Read timed out

Version

0.65.1

Output of npx react-native info

System:
OS: macOS 13.0
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 55.72 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
Yarn: 3.1.1 - /usr/local/bin/yarn
npm: 8.16.0 - ~/WebstormProjects/mono-front/node_modules/.bin/npm
Watchman: 2022.08.15.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/magdaaa/.rvm/gems/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

start to build android app

  • react-native run-android

Snack, code example, screenshot, or link to a repository

build.gradle

dependencies {
...
implementation "com.facebook.react:react-native:+"
...
}

@DDTEC-00
Copy link

You're not alone, experiencing same error

BUILD FAILED in 1m 47s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve com.facebook.react:react-native:+.
Required by:
project :app
project :app > project :notifee_react-native
project :app > project :react-native-community_masked-view
project :app > project :react-native-firebase_app
project :app > project :react-native-firebase_messaging
project :app > project :react-native-picker_picker
project :app > project :react-native-aes-crypto
project :app > project :react-native-biometrics
project :app > project :react-native-camera
project :app > project :react-native-device-info
project :app > project :react-native-document-picker
project :app > project :react-native-document-scanner-plugin
project :app > project :react-native-file-access
project :app > project :react-native-gesture-handler
project :app > project :react-native-get-random-values
project :app > project :react-native-image-crop-picker
project :app > project :react-native-mlkit-ocr
project :app > project :react-native-permissions
project :app > project :react-native-safe-area-context
project :app > project :react-native-screens
project :app > project :react-native-splash-screen
project :app > project :react-native-svg
project :app > project :react-native-vector-icons
project :app > project :realm
> Failed to list versions for com.facebook.react:react-native.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
> Read timed out

Steps to reproduce are the same.

@mauricedoepke
Copy link

mauricedoepke commented Oct 30, 2022

I get a similar error with an expo managed rn app:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':react-native-pager-view:verifyReleaseResources'.
> Could not resolve all task dependencies for configuration ':react-native-pager-view:releaseRuntimeClasspath'.

   > Could not resolve com.facebook.react:react-native:+.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
     Required by:

         project :react-native-pager-view
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
      > Failed to list versions for com.facebook.react:react-native.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
               > Read timed out

@stephanrotolante
Copy link

Same! No libs were changed either :/
Screen Shot 2022-10-30 at 3 36 34 PM

@louniss
Copy link

louniss commented Oct 30, 2022

JCenter and Bintray shut down today.

@dsipahioglu
Copy link

Do you have a resource that states this that you can share with us?

@olcaneristi
Copy link

I'm also getting the same error (version 0.66.4). anyone know what should we do?

@stephanrotolante
Copy link

@olcaneristi Probably going to have to change where were fetching these deps from in the build process because JCenter and Bintray aren't working.

@louniss I can't find any resources that state JCenter and Bintray being shutdown today? I found something that mentions being shutdown Feb 1st 2022, but were now way past that date

@mauricedoepke
Copy link

I was able to fix my build. Apparently jcenter is down. It was already deprecated for some time now. I am not sure if it is finally down forever now or if this is temporary.

I had to update all dependencies that still used jcenter to the newest version. Most of them replaced jcenter with maven already. One I had to manually patch with https://github.com/ds300/patch-package myself.

After that my build worked again.

@stephanrotolante
Copy link

@mauricedoepke hopefully this is just temp otherwise a fix is going to have to be made in all these RN pkgs

@louniss
Copy link

louniss commented Oct 30, 2022

@olcaneristi

https://bintray.com/ says 410 gone and https://jcenter.bintray.com/ says 403 forbidden

edit: to those who are confused

410 Gone
The HyperText Transfer Protocol (HTTP) 410 Gone client error response code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.

@stephanrotolante
Copy link

Hey everyone,

I tweaked a few things in my build.gradle file to emulate what this build.gradle looks like and my build errors went away

remove jcenter references and use mavenCentral

Hope this fixes everyone :)

@nyomanyudis95
Copy link

@stephanrotolante can you help me share your complete build.gradle ?. because i already remove jcenter but still got error. Thanks

@Bilal-Abdeen
Copy link

I had to comment out the jcenter() commands in build.gradle. If it is required by any of your libraries, you would need to check if there is a newer version of the library, which does not need it.

Obviously, you will need to delete the following folders (if any of them exists) before trying to rebuild your app.
android/.grdale, android/.idea, android/build & android/app/build

@proselin
Copy link

It may be stupid but work for me it is replace all jcenter() in your project even node_module by mavenCentral()

@stephanrotolante
Copy link

stephanrotolante commented Oct 31, 2022

@nyomanyudis95 try running a gradle clean, then rebuild

buildscript {
    ext {
        buildToolsVersion = "30.0.3"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31
        androidXCore = "1.7.0"
        kotlinVersion = "1.6.0"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:7.1.2')
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../../../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../../../node_modules/jsc-android/dist")
        }
        mavenCentral {
            // We don't want to fetch react-native from Maven Central as there are
            // older versions over there.
            content {
                excludeGroup "com.facebook.react"
            }
        }
        google()
        maven { url 'https://www.jitpack.io' }
    }

}

@a554878526
Copy link

I'm having the same problem

1 similar comment
@orchsik
Copy link

orchsik commented Oct 31, 2022

I'm having the same problem

@vTrip
Copy link

vTrip commented Oct 31, 2022

@a554878526 @orchsik

jcenter has shutdown in the last 24 hours I think.

You should grep "jcenter" and see which modules in your project contain references to it still. Upgrade those packages, if they have fixed it in a new release, or replace jcenter with mavenCentral in the package files yourself and use patch-package to maintain the change

I've just finished doing this and found many packages actually fixed this and just required an update to the version of those packages.

GL ✌️

@dippathak26
Copy link

I had to comment out the jcenter() commands in build.gradle. If it is required by any of your libraries, you would need to check if there is a newer version of the library, which does not need it.

Obviously, you will need to delete the following folders (if any of them exists) before trying to rebuild your app. android/.grdale, android/.idea, android/build & android/app/build

Hello,

I am still facing the same issue when building new release app, works pretty well with debug app
Looking for an update really soon.

Thanks!

@darpsoft
Copy link

Hello,

Same problem, in my case I can't replace jcenter with mavenCentral because I need it for some old libraries.

@jinal1788
Copy link

It worked using [proselin] solution.. Replace jcenter with mavenCentral in all node_modules

@nyomanyudis95
Copy link

BTW its already work for me just delete jcenter in build.gradle. After that you need to look carefully about what package that make your app dont run . For example i have problem like this after delete jcenter.

My error said its error required by quickblox-react-native-sdk. So i need to check version of that package. If you upgrade package that cause trouble to latest version and still can't run. You need to think again about using that package because jcenter dont support anymore. Thanks

@mowaisch
Copy link

replacing jcenter to mavenCentral causes another error

`Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find com.eightbitlab:blurview:1.6.6.
Searched in the following locations:
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/react-native/android/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/jsc-android/dist/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://maven.google.com/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://www.jitpack.io/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://repo.maven.apache.org/maven2/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://dl.google.com/dl/android/maven2/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
Required by:
project :app
Could not find com.eightbitlab:blurview:1.6.6.
Searched in the following locations:
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/react-native/android/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/jsc-android/dist/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://maven.google.com/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://www.jitpack.io/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://repo.maven.apache.org/maven2/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
- https://dl.google.com/dl/android/maven2/com/eightbitlab/blurview/1.6.6/blurview-1.6.6.pom
Required by:
project :app > project :react-native-community_blur
Could not find com.twitter.sdk.android:twitter-core:3.3.0.
Searched in the following locations:
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/react-native/android/com/twitter/sdk/android/twitter-core/3.3.0/twitter-core-3.3.0.pom
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/jsc-android/dist/com/twitter/sdk/android/twitter-core/3.3.0/twitter-core-3.3.0.pom
- https://maven.google.com/com/twitter/sdk/android/twitter-core/3.3.0/twitter-core-3.3.0.pom
- https://www.jitpack.io/com/twitter/sdk/android/twitter-core/3.3.0/twitter-core-3.3.0.pom
- https://repo.maven.apache.org/maven2/com/twitter/sdk/android/twitter-core/3.3.0/twitter-core-3.3.0.pom
- https://dl.google.com/dl/android/maven2/com/twitter/sdk/android/twitter-core/3.3.0/twitter-core-3.3.0.pom
Required by:
project :app > project :react-native-twitter-signin_twitter-signin
Could not find com.yqritc:android-scalablevideoview:1.0.4.
Searched in the following locations:
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/react-native/android/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/Users/muhammadowais/workspace/kiriDating/node_modules/jsc-android/dist/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://maven.google.com/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://www.jitpack.io/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://repo.maven.apache.org/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://dl.google.com/dl/android/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
Required by:
project :app > project :react-native-video`

@doniwinata0309
Copy link
Contributor

doniwinata0309 commented Oct 31, 2022

Could you guys try this and check if it works (in case you still using some library on jcenter)? So it seems not all jcenter repo down

    jcenter {
        content {
            excludeGroup "com.facebook.react"
            excludeGroup "net.minidev"
            excludeGroup "com.nimbusds"
        }
    }

@jihokim2
Copy link

jihokim2 commented Oct 31, 2022

@mowaisch Did you try "@react-native-community/blur": "^4.2.0" ?
If you do and install this problem disappear.

@mowaisch
Copy link

@doniwinata0309
after adding that

`Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve com.facebook.android:facebook-android-sdk:13.+.
Required by:
project :app > project :react-native-fbsdk-next
> Failed to list versions for com.facebook.android:facebook-android-sdk.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
`

@LongVT8
Copy link

LongVT8 commented Nov 1, 2022

Now, It is woking

@ManetJun
Copy link

ManetJun commented Nov 1, 2022

I think best is to move out from JCenter, we never know it will be down again and may eventually be taken down.
There were a few possible solutions mentioned above. Just a matter of testing it in your current setup.

@jzaleski
Copy link

jzaleski commented Nov 1, 2022

Agreed. After applying one of the quick fixes above we took the time to upgrade a few libraries that were holding us back and we were able to fully remove jcenter, and the bandaid.

It was one of those make lemonade sort of moments. It's great to see how active folks have been on this issue. It's not quite the lpad issue of '16, but it's been an inconvenience.

@2sem
Copy link

2sem commented Nov 1, 2022

In my case, I reverted forked packages after applying

all { ArtifactRepository repo ->

@vaish8529
Copy link

vaish8529 commented Nov 1, 2022

Task :react-native-camera:generateGeneralDebugRFile FAILED
162 actionable tasks: 159 executed, 3 up-to-date
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem was found with the configuration of task ':react-native-camera:generateGeneralDebugRFile' (type 'GenerateLibraryRFileTask').

File 'D:\Projects\node_modules\react-native-camera\android\build\intermediates\local_only_symbol_list\generalDebug\R-def.txt' specified for property 'localResourcesFile' does not exist.

  • 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 12s

@shivamIqlance
Copy link

It work's now. Can be build normal 🚀. After restart JCenter.

@shivamIqlance
Copy link

shivamIqlance commented Nov 1, 2022

If any one replace JCenter. Please revert if change or with JCenter 😊. It's temporary solution.

@kofkgoing
Copy link

@shivamIqlance JCenter is deprecated

https://developer.android.com/studio/build/jcenter-migration

@farooqalam20996
Copy link

Now I revert my yesterday's temporary solutions and it works fine.......

@farooqalam20996
Copy link

aadw

@vaish8529
Copy link

vaish8529 commented Nov 1, 2022

Still facing error.........

aadw

  • What went wrong:
    A problem was found with the configuration of task ':react-native-gesture-handler:generateDebugRFile' (type 'GenerateLibraryRFileTask').

File 'D:\Projects\node_modules\react-native-gesture-handler\android\build\intermediates\local_only_symbol_list\debug\R-def.txt' specified for property 'localResourcesFile' does not exist.

@farooqalam20996
Copy link

farooqalam20996 commented Nov 1, 2022

@vaish8529 bro I don't think so it's regarding Gradle, delete the node modules folder and install it, then go to android and clean gradlew and try to build App...
hope it will work for you...

@vaish8529
Copy link

Facing new error now....

Execution failed for task ':react-native-community_datetimepicker:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Facing new error now....

D:\Projects\MobileApp\poimobileapp\node_modules@react-native-community\datetimepicker\android\src\main\java\com\reactcommunity\rndatetimepicker\Common.java:57: error: lambda expressions are not supported in -source 7
return presentedDialog -> {
^
(use -source 8 or higher to enable lambda expressions)
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-community_datetimepicker:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

@knightyau
Copy link

Facing new error now....

Execution failed for task ':react-native-community_datetimepicker:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Facing new error now....

D:\Projects\MobileApp\poimobileapp\node_modules@react-native-community\datetimepicker\android\src\main\java\com\reactcommunity\rndatetimepicker\Common.java:57: error: lambda expressions are not supported in -source 7 return presentedDialog -> { ^ (use -source 8 or higher to enable lambda expressions) 1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-community_datetimepicker:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

What is your react-native version? Try upgrade your react-native to 0.68

@guptaAditya27
Copy link

How I solved this error:

In build.gradle

dependencies { ... implementation "com.facebook.react:react-native:+" // From node_modules

Changed to react-native version present in package.json

dependencies { ... implementation "com.facebook.react:react-native:0.70.3" // From node_modules

Same applies to other packages in build.gradle using + instead of specific version

Upgraded build gradle version and gradle plugin version

@tanz98
Copy link

tanz98 commented Nov 7, 2022

is jcenter down again?

@abhirock1998
Copy link

abhirock1998 commented Nov 7, 2022

is JScenter down again?

Nope

Check this issue #35210
hope this help

@tanz98
Copy link

tanz98 commented Nov 7, 2022

Screen Shot 2022-11-07 at 13 34 29

i check the website is 403 bro

is JScenter down again?

Nope

Check this issue #35210 hope this help

@baierjak
Copy link

baierjak commented Nov 8, 2022

Still getting error of missing react-native version :/ Tried already everything :(

Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native:0.63.+.
     Required by:
         project :app
      > No cached version listing for com.facebook.react:react-native:0.63.+ available for offline mode.
      > No cached version listing for com.facebook.react:react-native:0.63.+ available for offline mode.
   > Could not resolve com.facebook.react:react-native:0.63.+.
     Required by:
         project :app > project :react-native-i18n
         project :app > project :react-native-splash-screen
         project :app > project :react-native-community_async-storage
         project :app > project :react-native-community_masked-view
         project :app > project :react-native-community_viewpager
         project :app > project :sentry_react-native
         project :app > project :react-native-config
         project :app > project :react-native-dark-mode
         project :app > project :react-native-device-info
         project :app > project :react-native-gesture-handler
         project :app > project :react-native-keychain
         project :app > project :react-native-linear-gradient
         project :app > project :react-native-localize
         project :app > project :react-native-maps
         project :app > project :react-native-orientation-locker
         project :app > project :react-native-reanimated
         project :app > project :react-native-safe-area-context
         project :app > project :react-native-screens
         project :app > project :react-native-svg
         project :app > project :react-native-vector-icons
         project :app > project :react-native-webview

@barsheena
Copy link

barsheena commented Nov 8, 2022

[AAPT: error: resource android:attr/lStar not found]
info Fetching system and libraries information...
Binaries:
Node: 16.14.0 - /tmp/yarn--1667885641000-0.5041466317751242/node
Yarn: 1.21.1 - /tmp/yarn--1667885641000-0.5041466317751242/yarn
npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.16 - /usr/bin/javac
Python: 2.7.18 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.2 => 0.63.2
npmGlobalPackages:
react-native: Not Found
Done in 5.33s.

@AliYar-Khan
Copy link

AliYar-Khan commented Nov 8, 2022

I tried with the solution

def REPOSITORY_URL = 'https://maven.aliyun.com/repository/jcenter' all { ArtifactRepository repo -> if(repo instanceof MavenArtifactRepository){ def url = repo.url.toString() if (url.startsWith('https://jcenter.bintray.com/')) { project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL." remove repo mavenCentral() } } } maven { url REPOSITORY_URL }

and face this issue

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform flipper-0.101.0.aar (com.facebook.flipper:flipper:0.101.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find flipper-0.101.0.aar (com.facebook.flipper:flipper:0.101.0).
        Searched in the following locations:
            https://maven.aliyun.com/repository/jcenter/com/facebook/flipper/flipper/0.101.0/flipper-0.101.0.aar
   > Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-aar-metadata, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0).
        Searched in the following locations:
            https://maven.aliyun.com/repository/jcenter/com/facebook/react/react-native/0.71.0-rc.0/react-native-0.71.0-rc.0-debug.aar

How can I solve this !

@ajith-acumen
Copy link

Execution failed for task ':app:processDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction

@rmadi
Copy link

rmadi commented Nov 9, 2022

this is fix my problem try it
https://stackoverflow.com/questions/74333132/task-react-native-async-storage-async-storagegeneratedebugrfile-failed

@cortinico
Copy link
Contributor

This is a duplicate of #35210

@Moskaoud
Copy link

Moskaoud commented Apr 19, 2023

solution #35210

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

No branches or pull requests