Avatar
0
tvd12 Enlightened
tvd12 Enlightened
React Native: Fix lỗi Failed to transform react-android-0.72.3-debug.aar
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-android-0.72.3-debug.aar (com.facebook.react:react-android:0.72.3) 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}.
      > Execution failed for JetifyTransform: /Users/xxx/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-android/0.72.3/753dcb10579a06570819a980133bb5042d82a6a5/react-android-0.72.3-debug.aar.
         > Java heap space
   > Failed to transform hermes-android-0.72.3-debug.aar (com.facebook.react:hermes-android:0.72.3) 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}.
      > Execution failed for JetifyTransform: /Users/xxx/.gradle/caches/modules-2/files-2.1/com.facebook.react/hermes-android/0.72.3/f89c2cda86da7a97ffd78484839d880f8eccd3c9/hermes-android-0.72.3-debug.aar.
         > Java heap space
  • Answer
react-native
Remain: 5
1 Answer
Avatar
tvd12 Enlightened
tvd12 Enlightened
Cần tăng heap size lên:
org.gradle.jvmargs=-Xmx4096M -XX:MaxMetaspaceSize=512m
  • 0
  • Reply