square / in-app-payments-react-native-plugin

Apache License 2.0
118 stars 50 forks source link

Suddenly Unable to gradlew assembleRelease #159

Closed n3rd253 closed 2 years ago

n3rd253 commented 2 years ago

Describe the issue

Have a pipeline in azure devops which is running on a hosted mac (Have tried 11.0 and 10.15)

Seems something has changed in the back since last Monday, but I can't figure out how to resolve, or what changed.

> Task :app:mergeReleaseNativeLibs FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseNativeLibs'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
   > Failed to transform moshi-1.13.0.jar (com.squareup.moshi:moshi:1.13.0) to match attributes {artifactType=android-java-res, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for JetifyTransform: /Users/runner/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar.
         > Failed to transform '/Users/runner/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)

I receive this above, with just standard gradlew assembleRelease.

This happens even on builds which were previously successful

Expected behavior

Build completes smoothly

Environment (please complete the following information): Azure Devops MSFT Hosted Agent. MacOS 11 & 10.15. Android

vishwajitshep0815 commented 2 years ago

Hi @n3rd253, can you compare your gradle.properties file with the below one and check if it works for you?

https://github.com/square/in-app-payments-react-native-plugin/blob/master/react-native-in-app-payments-quickstart/android/gradle.properties

vishwajitshep0815 commented 2 years ago

@n3rd253 did the above fix work for you?

n3rd253 commented 2 years ago

@vishwajitshep0815 @StephenJosey @ i'm sorry I just saw this response somehow.

No this does not work. When I try to ignore the file, yes it builds. But once app loads, it is unable to load CardEntryScreen due to below. Screenshot_20220422-114522_Market Feedback Agent

n3rd253 commented 2 years ago

The response time on your developer support here is horrible at best. Not even worth asking a question

mirzahayat commented 2 years ago

have you resolve this issue @n3rd253