joltup/rn-fetch-blob

Android Build failed with an exception ':rn-fetch-blob:verifyReleaseResources'

imkhalif opened this issue ยท 7 comments

Hi !

  • I'm using "rn-fetch-blob": "^0.12.0" version and "react-native": "0.68.2".

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':rn-fetch-blob:verifyReleaseResources'.

Could not resolve all task dependencies for configuration ':rn-fetch-blob:releaseRuntimeClasspath'.
Could not resolve com.facebook.react:react-native:+.
Required by:
project :rn-fetch-blob
> 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

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 25s

Hi I have the same Issue:
using "rn-fetch-blob": "^0.12.0"
build using gradlew assembleRelease failed with:

  • What went wrong:
    Could not determine the dependencies of task ':rn-fetch-blob:verifyReleaseResources'.

Could not resolve all task dependencies for configuration ':rn-fetch-blob:releaseRuntimeClasspath'.
Could not resolve com.facebook.react:react-native:+.
Required by:
project :rn-fetch-blob
> 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

cd android && ./gradlew app:assembleRelease worked for me

jcenter gradle repository has been down.
this workaround worked for me

#820 (comment)

when I tried to take release build in Android studio worked for me! I don't know why the build error came while using 'gradlew assembleRelease'

cd android && ./gradlew app:assembleRelease worked for me

not worked for me

cd android && ./gradlew app:assembleRelease

thanks man worked for me.

getting this error

Android gradle plugin: 8.2.0
Gradle: 8.2

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':rn-fetch-blob'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

 If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.