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

[Expo + Android] Build failing #2794

Open
MariuzM opened this issue Jul 2, 2024 · 0 comments
Open

[Expo + Android] Build failing #2794

MariuzM opened this issue Jul 2, 2024 · 0 comments

Comments

@MariuzM
Copy link

MariuzM commented Jul 2, 2024

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

When i install react-native-iap i started getting build failings on Android using Expo
SCR-20240702-savh

Expected Behavior

Build should not fail

Screenshots

Expo Plugin config:
SCR-20240702-samk

These are the changes i noticed in Android folder (Before / After)
SCR-20240702-sagq

SCR-20240702-saiw

Environment:

  • react-native-iap: 12.15.1
  • react-native: 0.74.2
  • expo: 51.0.17
  • Platforms (iOS, Android, emulator, simulator, device): Android Emulator

To Reproduce
Steps to reproduce the behavior:

  1. expo run:android

[Optional] Additional Context

Stacktrace

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkAmazonDebugAarMetadata'.
> Could not resolve all files for configuration ':app:amazonDebugRuntimeClasspath'.
   > Failed to transform react-android-0.74.2-debug.aar (com.facebook.react:react-android:0.74.2) 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/marius/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-android/0.74.2/674c8797ed95ff3d5910d680af97855d1173dd/react-android-0.74.2-debug.aar.
         > Java heap space

* Try:
> 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.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:checkAmazonDebugAarMetadata'.
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant