Hi , I am trying working with flutter and getting below error on click on pay by card .
Here are my dependencies…
dependencies {
def readerSdkVersion = "1.4.+"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.multidex:multidex:2.0.0'
//Payment SDK
implementation "com.squareup.sdk.reader:reader-sdk-$SQUARE_READER_SDK_APPLICATION_ID:$readerSdkVersion"
runtimeOnly "com.squareup.sdk.reader:reader-sdk-internals:$readerSdkVersion"
}
E/AndroidRuntime(27315): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.airbackup/sqip.internal.CardEntryActivity}: java.lang.IllegalArgumentException: Cannot serialize Kotlin type sqip.internal.nonce.CreateCardNonceErrorResponse. Reflective serialization of Kotlin classes without using kotlin-reflect has undefined and unexpected behavior. Please use KotlinJsonAdapter from the moshi-kotlin artifact or use code gen from the moshi-kotlin-codegen artifact.