#dcboy_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295648237277024289
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
gradle version classpath('com.android.tools.build:gradle:7.3.1')
gradle-7.4
buildToolsVersion = "30.0.2"
minSdkVersion = 25
compileSdkVersion = 34
targetSdkVersion = 30
kotlinVersion = '1.6.21'
RNNKotlinVersion = "1.4.10"
RNNKotlinStdlib = "kotlin-stdlib-jdk8"
objectboxVersion = "2.9.1"
ndkVersion = "23.1.7779620"
Can you share the gradle logs that tells where exactly the build failed?
No, you should add --stacktrace or --debug flag on the gradle command so that it will print more information.
ok i will
Task :app:minifyDebugWithR8 FAILED
Turn off proguard and try again
2024-10-15T15:31:45.499+0800 [INFO] [com.android.build.gradle.internal.tasks.R8Task] R8 is a new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name.
Current version is: 3.3.83 (build d5e059405551748a66c0be70b405d71c2787cbfe from go/r8bot (luci-r8-custom-ci-bionic-2-3xhf)).
Can you turn off R8 and try again?
how to turn off R8
android.enableR8=false
already disabled R8 but also not work for me
version 3.7.1 is work well for me
but 3.10.0
Hmm, are you using the stripe-terminal-react-native library?
no
implementation "com.stripe:stripeterminal-localmobile:3.10.0"
implementation "com.stripe:stripeterminal-core:3.10.0"
only this tow library
tap to pay
What is the new error message?
Looks like the error is still thrown from R8
Can you disable R8 and see if the build succeeds?
Task :app:mergeExtDexDebug
ERROR:/Users/dcboy/.gradle/caches/transforms-3/6b40c21f6187107406aa06a97feba69d/transformed/fragment-1.8.2-runtime.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "string" is null
3.7.1 enable R8 is work
Is there a android sample project that you can share to reproduce the problem?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
ok thanks
https://stackoverflow.com/questions/77587376/cannot-invoke-string-length-because-parameter1-is-null
https://forum.qt.io/topic/151244/online-installed-android-qt-6-6-but-build-requires-newer-version/11
Error while dexing: Cannot invoke "String.length()" because "<parameter1>" is null HtmlUnit/htmlunit-android#37
the same error but not stripe sdk
I am trying to build my code and this is what I am getting:
Could not resolve all files for configuration ':MyPlugin:debugRuntimeClasspath'.
Failed to transform commons-lang3-3.14.0.ja...
Do you mind reaching out to Stripe Support, since this will take some time to reproduce. You can say you talked to us on Discord and my engineering team will take over the case: https://support.stripe.com/contact/email?topic=api_integration
ok
java 17 version
classpath("com.android.tools:r8:8.5.35")
i fixed this problem
add this classpath("com.android.tools:r8:8.5.35")
to build.gradle
that can close this issus
Glad it worked.
Sure, you can ask here
how can i change this tips text
is wrong
i want to change this text no behind device
"please tap your card at the top protion of the screen"
What device is this exactly?
The antenna is in front of the screen
this is our custom device use tap to pay
LocalMobileUxConfiguration this api not support change the tips text
describeContents is int ?
Alternatively, the tapZoneIndicator can be set to FRONT (I don't know if TOP is a possible value): https://docs.stripe.com/terminal/payments/setup-reader/tap-to-pay?platform=android#ux-configuration
i just want to change tips text
"Tap behind device"
the antenna not behind device
I understand. I believe the indicator controls the text too. There's a value ABOVE https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.models/-local-mobile-ux-configuration/-tap-zone-indicator/index.html#878550168%2FClasslikes%2F-405186196
Happy to help.
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!