react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Null extracted folder for artifact: ResolvedArtifact

Open JasonFes opened this issue 2 years ago • 1 comments

Description

Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=org.webkit:android-jsc:r245459, variantName=null, artifactFile=/Users/jason/work/pnApp33/node_modules/jsc-android/dist/org/webkit/android-jsc/r245459/android-jsc-r245459.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={current_build=/Users/jason/work/pnApp33/android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@53df469c)

Version

0.61.5

Output of npx react-native info

System: OS: macOS 13.0 CPU: (10) arm64 Apple M1 Max Memory: 1.69 GB / 32.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.10.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 7.24.0 - /usr/local/bin/npm Watchman: 2022.10.24.00 - /opt/homebrew/bin/watchman SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 Android SDK: API Levels: 21, 28, 29, 30, 33 Build Tools: 29.0.2, 29.0.3, 30.0.2, 33.0.0 IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1

Steps to reproduce

1)react-native init pnApp --version 0.61.5 2)android studio run File -> Sync Project with Gradle Files

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

https://github.com/JasonFes/pnApp33

JasonFes avatar Nov 02 '22 08:11 JasonFes

@JasonFes I had a similar error, it wasn't obvious that I was running out of memory but I bumped up the maximum size of memory allocation pool by adding:

org.gradle.jvmargs=-Xmx4096M

to gradle.properties

It worked after. I hope it helps, it's from here https://stackoverflow.com/a/72951758/4439092

philippeapril avatar Nov 07 '22 01:11 philippeapril

Android Studio relaunch helped

Bardiamist avatar Jan 16 '23 05:01 Bardiamist

Closing as the issue is related to 0.61.5. There is nothign actionable for us to do here + a valid workaround has been provided

cortinico avatar Jan 19 '23 09:01 cortinico

philippeapril

It works like charm

neithlys avatar Apr 17 '23 16:04 neithlys

@philippeapril I still facing the same issue after trying your solution, is there anything else to try?

MohammedShehata avatar Aug 10 '23 13:08 MohammedShehata

I have the same problem, I'm on macbook pro Intel, Android Studio Giraffe | 2022.3.1 Patch 1

RichardLindhout avatar Aug 29 '23 20:08 RichardLindhout

I had to downgrade Android Studio to "Android Studio Electric Eel | 2022.1.1" and is working well now!

MohammedShehata avatar Sep 13 '23 11:09 MohammedShehata

Hello!, I currently have the same error, only from a React Native app. The error only occurs when trying to add an .aar to the project, otherwise it works correctly. (i am using react native version 0.72.5 and android studio 22.3.1 patch 2)

javierbc121086 avatar Oct 15 '23 07:10 javierbc121086

@JasonFes I had a similar error, it wasn't obvious that I was running out of memory but I bumped up the maximum size of memory allocation pool by adding:

org.gradle.jvmargs=-Xmx4096M

to gradle.properties

It worked after. I hope it helps, it's from here https://stackoverflow.com/a/72951758/4439092

@philippeapril Helped a lot, thank you !

serybva avatar Feb 02 '24 15:02 serybva

I've even downgraded the Android Studio to Eel, but it didn't help 🫤

yogendrajs avatar Feb 12 '24 06:02 yogendrajs

@JasonFes I had a similar error, it wasn't obvious that I was running out of memory but I bumped up the maximum size of memory allocation pool by adding:

org.gradle.jvmargs=-Xmx4096M

to gradle.properties

It worked after. I hope it helps, it's from here https://stackoverflow.com/a/72951758/4439092

it worked for me!

ko-devHong avatar Apr 17 '24 08:04 ko-devHong