square / in-app-payments-flutter-plugin

Flutter Plugin for Square In-App Payments SDK
https://developer.squareup.com/docs
Apache License 2.0
340 stars 121 forks source link

I have error when build android app #203

Closed attractfront closed 1 year ago

attractfront commented 2 years ago

This error wasn't few days ago but became today Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve net.minidev:json-smart:[1.3.1,2.3]. Required by: project :app > project :square_in_app_payments > com.squareup.sdk.in-app-payments:buyer-verification:1.5.6 > com.squareup.sdk.in-app-payments:buyer-verification-internals:1.5.6 > com.nds.threeds:widget:1.3.9 > com.nds.threeds:core:1.3.9 > com.nds.threeds:threedssdk-release:1.10.7 Failed to list versions for net.minidev:json-smart. Unable to load Maven meta-data from https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml. Could not GET 'https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml'. Read timed out

I think it is connected with jcenter() in build.gradle

Could you please check it?

AbdrahumanFikry commented 2 years ago

same

Flutter version : 3.3.4

`FAILURE: Build failed with an exception.

CharmisG commented 2 years ago

Hello @attractfront @AbdrahumanFikry ,

please replace your gradle.properties with below code,

org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true android.proguard.enableRulesExtraction=true

and change compileSDK and targetSDK version to 32 in app build.gradle.

and let me know if you are still facing same.

CharmisG commented 1 year ago

Closing this issue but if you still find this problem please reopen this issue. Thank you.