#shanewanghipages
1 messages · Page 1 of 1 (latest)
From https://stackoverflow.com/questions/75603686/can-not-add-resource-com-android-aaptcompiler-parsedresource4ba9af2, it's likely that you have the attribute that overrides the system default properties. Can you try changing the attribute name to check if it helps?
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
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 ?
it happens when i compile the project. yes, i have tried clean build
Can you share the full build error?
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.
Which version(s) of the SDKs are you using in your gradle file?
implementation "com.stripe:stripeterminal-localmobile:2.20.1"
implementation "com.stripe:stripeterminal-core:2.20.1"
these 2
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...
would it help if i only share part of the build.gradle to you? like just the dependencies?
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...
thanks. it would be quite unlikely to share all our dependencies to you since we have our own private dependencies
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?
yes. when i remove stripe dependencies, the error disappears
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.