-
Notifications
You must be signed in to change notification settings - Fork 50
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
Execution failed for task ':app:checkDebugDuplicateClasses'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform jackson-core-2.16.1.jar #653
Comments
it looks like your project's minSDK is set at 21, but we require at least 26: https://github.com/stripe/stripe-terminal-react-native?tab=readme-ov-file#android |
FAILURE: Build failed with an exception.
now I use =>
|
I'm having the same issue, not sure how to get around it. |
Hello, can you please share all the versions along with Java, Kotln, React-native, minSdkVersion, targetSdkVersion, and compileSdkVersion that version? and in iOS your project is running fine? please share |
My iOS app builds fine. Android fails with the issues you mentioned. I'm using target version 33, compile version 34, min version 26, react 18.2, react Native 73.6. I can build fine using the previous version and expo 49 (0.0.1-beta.15), but I'd like to use expo 50 so I can better integrate sentry |
how to use in expo ? |
this is an issue due to updating the the underlying Terminal Android SDK to If you update your does it resolve the issue? |
Still does not resolve the issue. I tried removing the
|
thank you @nazli-stripe app built successfully using android.enableJetifier = false in latest teact native project |
For those on expo you can write a plugin to edit the gradle.properties file yourplugin.js const { withGradleProperties } = require('@expo/config-plugins');
/**
* tl;dr fix for
* https://github.com/stripe/stripe-terminal-react-native/issues/653
*
* This is a workaround for an issue with the Stripe Terminal SDK and Jetifier.
* Should be able to remove this once stripe is updated to sdk 18
* @param {*} config
* @param {*} customName
* @returns
*/
const withJetifierIgnoringJackson = (config, customName) => {
return withGradleProperties(config, async config => {
config.modResults.push({
key: 'android.jetifier.ignorelist',
value: 'jackson-core',
type: 'property',
});
return config;
});
};
/// Use the plugin
module.exports = withJetifierIgnoringJackson; and then in appconfig
|
Damn, after about 2 days of solving this bug, this solution worked perfectly for me, thank you |
This works for me as well, thank you @Eonfuzz!! |
closing this one as there is a working fix, thanks @Eonfuzz for the patch! |
@nazli-stripe When will you update to sdk 18? |
@isaachinman next release, should be by end of june |
android/gradle.properties |
@Eonfuzz Wouldn't it be possible to achieve that without a custom plugin, via |
@Eonfuzz : I am getting this error with "require('@expo/config-plugins');". Did you get this? |
I couldn't see how to edit the specific gradle prop I was after in that documentation, if you find out a way please let me know! @hungcaovn do you have @expo/config-plugins installed? |
@Eonfuzz : Yes I did |
@nazli-stripe I don't think this is an acceptable solution. |
changing and the fix is to enable jettifier 😓 |
@mykel-unwritten please check below versions "react": "18.2.0", |
hi @abhijitCN pretty much the same, the only difference is im on i'm on stripe terminal library beta16 |
@nazli-stripe given this the "fix" for expo to work correctly with stripe-terminal-react-native could you please add it to your expo setup file?
|
Hey, trying to restart this discussion 😄 I've followed the rough path to get here but like @mykel-unwritten, I'm getting an error that's meant to be solved by re-enabling jettifier. What are we meant to do there ? Is there something else we can try ? Thank you for your help 🤞 More info : @stripe/stripe-terminal-react-native: ^0.0.1-beta.19 |
beta.20 release updated expo config to automatically disable jettifier for jackson-core |
in your file
|
unable to run @stripe/stripe-terminal-react-native in latest react-native 0.73.6
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform jackson-core-2.16.1.jar (com.fasterxml.jackson.core:jackson-core:2.16.1) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
I am using =>
{
buildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"
}
and
"dependencies": {
"@stripe/stripe-terminal-react-native": "^0.0.1-beta.16",
"react": "18.2.0",
"react-native": "0.73.6"
}
and gradle-8.3-all.zip for Android which version is wrong for me
The text was updated successfully, but these errors were encountered: