Magints / payfort

BSD 2-Clause "Simplified" License
0 stars 5 forks source link

cannot run on android #14

Open daidoo-mtn-gh opened 2 years ago

daidoo-mtn-gh commented 2 years ago

I tried the example code on android but I was not able ran.

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors e: /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. e: /Users/h/.gradle/caches/transforms-2/files-2.1/74828f30be8fb6dd2f23eae0f74d1cf7/jetified-core-ktx-1.8.0-alpha02-api.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. e: /Users/h/.gradle/caches/transforms-2/files-2.1/8e58e2b54bac18d64673a3ecf0819ead/jetified-kotlin-stdlib-common-1.6.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (41, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (42, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (51, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (72, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (73, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (78, 27): Unresolved reference: requestMap["command"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (78, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (79, 27): Unresolved reference: requestMap["customer_email"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (79, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (80, 27): Unresolved reference: requestMap["currency"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (80, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (81, 27): Unresolved reference: requestMap["amount"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (81, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (84, 27): Unresolved reference: requestMap["language"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (84, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (85, 27): Unresolved reference: requestMap["merchant_reference"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (85, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (86, 27): Unresolved reference: requestMap["customer_name"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (86, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (87, 27): Unresolved reference: requestMap["sdk_token"] e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (87, 27): No set method providing array access e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (88, 29): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (89, 29): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (91, 43): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (94, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (99, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (104, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (114, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (121, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (134, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class e: /Users/h/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/android/src/main/kotlin/com/agm/payfort_plugin/payfort_plugin/PayfortPlugin.kt: (135, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. The class is loaded from /Users/h/.gradle/caches/transforms-2/files-2.1/6dc09ef492479f456878d1ba74749970/jetified-kotlin-stdlib-1.6.0.jar!/kotlin/Unit.class

FAILURE: Build failed with an exception.

BUILD FAILED in 29s

Exception: The plugin payfort_plugin could not be built due to the issue above.

syrakozz commented 2 years ago

you need to modify the kotlin version

syrakozz commented 2 years ago

try change it to >>> ext.kotlin_version = '1.6.0' in android/build.gradele

aidooyaw1992 commented 2 years ago

ok thank you, i will check it soon

aidooyaw1992 commented 2 years ago

ok thank you, i will check it soon

aidooyaw1992 commented 2 years ago

ok thank you, I will check it soon