-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Cannot build flutter stripe in my project #1103
Comments
minSdkVersion 21 import io.flutter.embedding.android.FlutterFragmentActivity dependencies { Followed everything, but what is issue? |
did you run |
yes, did
…On Thu, Feb 2, 2023 at 4:59 PM Rémon ***@***.***> wrote:
did you run flutter clean before?
—
Reply to this email directly, view it on GitHub
<#1103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A357V7BG4VO3HIBLR7FMRIDWVNSPDANCNFSM6AAAAAAUOVPFX4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I added 8.0 to my project and have the same config as you and it did build without problems. Maybe ./gradlew clean will help . I use grade-wrapper: |
I use same gradle wrapper too. |
I got this error message when run ./gradlew clean in android folder. penJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000604400000, 532676608, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455) There is insufficient memory for the Java Runtime Environment to continue.Native memory allocation (mmap) failed to map 532676608 bytes for Failed to commit area from 0x0000000604400000 to 0x0000000624000000 of length 532676608.An error report file with more information is saved as:F:\BaTransfer\ba_transfer_customer\android\hs_err_pid32280.logbut when I run this command in another kotlin project, it is works. |
I did "./gradlew clean" after restart pc. e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (53, 26): Unresolved reference: getValOr |
FAILURE: Build failed with an exception.
|
do you have added a stripe dependency in build.gradle? |
no , I did not. |
I did not see about that in document. |
Same error for me after updating to flutter_stripe 8.0.0+1.
|
it is worked when you use previous version? |
Yes, 7.0.0 worked. |
I added this line in dependencies of build.gradle. |
I just updated flutter_stripe version from 7.0.0 to 8.0.0+1, no other changes. |
can you try to build the example app of this repo and see if the issue persist? else I need to have a reproduction repo to properly debug it |
I've changed 8.0.0+1 to 7.0.0. |
PS F:\Stripe Flutter\example> flutter pub get |
How did you solve it? It is really annoying (especially it outside our control) I will try to contact Stripe if they can help mitigating this in future |
hmm I can reproduce it as well now will look into it |
Fixed in |
@remonh87 Similar issue in 9.0.0: e: file:///Users/builder/programs/flutter/.pub-cache/hosted/pub.dev/stripe_android-9.0.0/android/src/main/kotlin/com/reactnativestripesdk/StripeSdkModule.kt:808:14 Expression 'size' of type 'Int' cannot be invoked as a function. The function 'invoke()' is not found |
I followed everything to install this library, but I've got this error when build & run project.
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (53, 26): Unresolved reference: getValOr
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (54, 34): Unresolved reference: getIntOrNull
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (55, 35): Unresolved reference: getIntOrNull
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (56, 23): Unresolved reference: getValOr
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (58, 72): Unresolved reference: it
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardFormPlatformView.kt: (64, 65): Unresolved reference: it
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardPlatformView.kt: (57, 26): Unresolved reference: getValOr
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardPlatformView.kt: (58, 34): Unresolved reference: getIntOrNull
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardPlatformView.kt: (59, 35): Unresolved reference: getIntOrNull
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardPlatformView.kt: (60, 23): Unresolved reference: getValOr
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardPlatformView.kt: (62, 52): Unresolved reference: it
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\flutter\stripe\StripeSdkCardPlatformView.kt: (73, 45): Unresolved reference: it
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\reactnativestripesdk\CardFieldViewManager.kt: (84, 18): Unresolved reference: getValOr
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\reactnativestripesdk\CardFieldViewManager.kt: (85, 26): Unresolved reference: getIntOrNull
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\reactnativestripesdk\CardFieldViewManager.kt: (86, 27): Unresolved reference: getIntOrNull
e: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\stripe_android-8.0.0\android\src\main\kotlin\com\reactnativestripesdk\CardFieldViewManager.kt: (87, 15): Unresolved reference: getValOr
FAILURE: Build failed with an exception.
Execution failed for task ':stripe_android:compileDebugKotlin'.
BUILD FAILED in 48s
Exception: Gradle task assembleDebug failed with exit code 1
The text was updated successfully, but these errors were encountered: