#shanewanghipages

1 messages · Page 1 of 1 (latest)

daring sirenBOT
lyric pewter
long citrus
#

i don't have this error once i remove these dependencies of stripe

#

and the file that throws me this error is an intermediate file generated from build process

atomic nimbus
#

Hi @long citrus where do you see the error? when you compile the Android APK or when you run the app?

#

Have you try clean the project and build it again? ./gradlew clean ?

long citrus
#

it happens when i compile the project. yes, i have tried clean build

atomic nimbus
#

Can you share the full build error?

daring sirenBOT
long citrus
#

Task :app:mergeDemoDebugResources FAILED

Execution failed for task ':app:mergeDemoDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed (Failed to compile values resource file /path_to_the_app/build/intermediates/incremental/demoDebug/mergeDemoDebugResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not add resource (com.android.aaptcompiler.ParsedResource@16a507ac) to table.). Check logs for more details.

daring oasis
#

Which version(s) of the SDKs are you using in your gradle file?

long citrus
#

implementation "com.stripe:stripeterminal-localmobile:2.20.1"
implementation "com.stripe:stripeterminal-core:2.20.1"
these 2

calm crane
#

Hey! Taking over for my colleague. Let me catch up.

#

Can you please share your build.gradle ?

#

According to the error you have something in your resources that is causing this error...

#

let me do a quick test meanwhile...

long citrus
#

would it help if i only share part of the build.gradle to you? like just the dependencies?

calm crane
#

This kind of issue is generally related to one of your resources values-...xml.... and maybe one of your dependencies

#

So ideally we get a complete project...

#

I'll try to create a minimal test project using just these dependencies:

dependencies {
  implementation "com.stripe:stripeterminal-localmobile:2.20.1"
  implementation "com.stripe:stripeterminal-core:2.20.1"
  ...
}
#

and see if the build went successfully...

long citrus
#

thanks. it would be quite unlikely to share all our dependencies to you since we have our own private dependencies

calm crane
#

Actually, the issue may lay behind a combination of resources/dependencies, not strictly related to Stripe dependenciesW

#

Did you try removing Stripe Dependencies and build you project and see if the error occurs?

long citrus
#

yes. when i remove stripe dependencies, the error disappears

calm crane
#

I think we'll need a sample minimal project that reproduces this issue.

#

I invite to create a minimal sample project that reproduces the issue and share it with us.

#

This issue will require an in-depth investigation from our team in order to figure out the root cause. Can we ask that you write in to us via https://support.stripe.com/contact, providing as much detail (ideally a minimal sample project) and context as possible (you can also reference this thread).
Also, you can check the 'developer' box when writing in it will come straight to our team.

daring sirenBOT