-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Fresh project does not build on Android #35892
Comments
This often happens if your device runs out of memory.
|
Unfortunatelly keeps showing the same error. I even cleared Gradle cache but the same error is raised |
What specifically have you done? |
|
In your specific case I'd try to also:
Try to rebuild after every step. The last one is pretty disruptive and will take you quite some time to rebuild after it. |
@cortinico Sadly, it's worse after running that:
|
Actually the issue you were facing "Null extracted folder for artifact: ResolvedArtifact" is solved. Now your build is failing as you have specified an entry file which doesn't exist. |
I had a small error in there yes. After fixing that, everything worked as expected. |
hi, i have the same error. I did what you said but the error is not fixed. Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.facebook.react:react-native:0.71.0-rc.0, variantName=null, artifactFile=/Users/aytekinsahin/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-native/0.71.0-rc.0/7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543/react-native-0.71.0-rc.0-debug.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={current_build=/Users/user/Desktop/Mobile Apps/test/android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@36caeb78) build.gradle (app) apply plugin: "com.android.application" import com.android.build.OutputFile /**
project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" /**
/**
/**
/**
android {
} dependencies {
} // Run this once to be able to run the application with BUCK apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
i getting this error A problem was found with the configuration of task ':app:createBundleReleaseJsAndAssets' (type 'BundleHermesCTask').
if you have any solution . Share me |
I am also facing same issue and above solution doesn't work. |
@BZaldua can you tell me what is the solution of this above error? |
i had this error since few days. how to solve it please? |
Description
I just created a new project and as soon as I open it on Android Studio, this error is shown:
Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.facebook.react:react-android:0.71.0, variant=com.facebook.react:react-android:0.71.0 variant debugVariantDefaultApiPublication, variantName=null, artifactFile=/MY_USER/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-android/0.71.0/4760de5b8fcda11cc969ec2b872ff61b760f1433/react-android-0.71.0-debug.aar, isTestFixturesArtifact=false, extractedFolder=null, publishedLintJar=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/MY_USER/PROJECT_DIR/RN71/android, react-native-gradle-plugin=//MY_USER/PROJECT_DIR/RN71/node_modules/react-native-gradle-plugin})
If I create a fresh project with 0.70.6 everything is OK, but this last version does not seem to be working
Version
0.71.0
Output of
npx react-native info
System:
OS: Linux 5.4 Ubuntu 18.04.4 LTS (Bionic Beaver)
CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
Memory: 3.94 GB / 15.50 GB
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 9.3.1 - ~/.nvm/versions/node/v16.19.0/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
Android NDK: 21.0.6113669
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.0 => 0.71.0
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
react-native init
cd android
./gradlew build
Snack, code example, screenshot, or link to a repository
NA
The text was updated successfully, but these errors were encountered: