#dcboy_error

1 messages ยท Page 1 of 1 (latest)

narrow prawnBOT
#

๐Ÿ‘‹ 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.

pliant oriole
#

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"

thorn rampart
#

Can you share the gradle logs that tells where exactly the build failed?

pliant oriole
#

is this files ?

thorn rampart
#

No, you should add --stacktrace or --debug flag on the gradle command so that it will print more information.

pliant oriole
#

ok i will

thorn rampart
#

Task :app:minifyDebugWithR8 FAILED

Turn off proguard and try again

pliant oriole
#

Can proguard not be opened even in the release version?

thorn rampart
#
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?

pliant oriole
#

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

thorn rampart
#

Hmm, are you using the stripe-terminal-react-native library?

pliant oriole
#

no

#

implementation "com.stripe:stripeterminal-localmobile:3.10.0"
implementation "com.stripe:stripeterminal-core:3.10.0"

#

only this tow library

#

tap to pay

thorn rampart
#

What is the new error message?

pliant oriole
thorn rampart
#

Looks like the error is still thrown from R8

#

Can you disable R8 and see if the build succeeds?

pliant oriole
#

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

thorn rampart
#

Is there a android sample project that you can share to reproduce the problem?

narrow prawnBOT
pliant oriole
#

i try to create new project ?

#

i don't why 3.7.1 is work

maiden cedar
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

pliant oriole
#

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

maiden cedar
pliant oriole
#

ok

pliant oriole
#

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

maiden cedar
#

Glad it worked.

pliant oriole
#

i have another question

#

Can I ask a question or do I need to resubmit one?

maiden cedar
#

Sure, you can ask here

pliant oriole
#

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"

maiden cedar
#

What device is this exactly?

pliant oriole
#

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

pliant oriole
#

describeContents is int ?

maiden cedar
pliant oriole
#

i just want to change tips text

#

"Tap behind device"

#

the antenna not behind device

pliant oriole
#

i try

#

thx

narrow prawnBOT
maiden cedar
#

Happy to help.

valid comet
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!