#vinson_95966

1 messages · Page 1 of 1 (latest)

dusty glenBOT
vagrant garden
#

ViewModelProvider.AndroidViewModelFactory.Companion.APPLICATION_KEY is from your application. You'd need to check why the value is null

latent sundial
#

However, this error was reported in Stripe's sdk, and the page that calls payment needs to use activity and viewmodule

#

I also tried to add the Application to the CreationExtras, but all failed

vagrant garden
#

Thanks for sharing! Looking into how to ensure that APPLICATION_KEY isn't null

latent sundial
#

I don't know why it is null, so I ask for your help

vagrant garden
#

Yup! We are checking on it

latent sundial
#

He's calling it over here

#

I use version 20.19.0, my project is relatively early, so I can not upgrade to the latest version, which will cause the project can not compile normally

vagrant garden
latent sundial
#

This is the Application in my project. Do you need to inherit Stripe related Application

#

I wrote a simple activity in my project to use as a demo. Is this correct? I'm not using MVVM here

rare vortex
#

Hi @latent sundial I'm taking over this thread

latent sundial
rare vortex
#

Can I suggest you to use the latest Stripe Android SDK and try again?

latent sundial
#

However, with the latest sdk, many mistakes were reported in my project, which was difficult to modify

rare vortex
#

What mistakes?

latent sundial
#

I started with the latest sdk, but I found more serious problems and chose the lower version

rare vortex
#

So what's the problem?

latent sundial
#

The new sdk requires a higher version of gradle, but after upgrading gradle in my project, some plug-in references are missing

rare vortex
#

What plug-in references?

latent sundial
#

apply plugin: 'packer'

rare vortex
#

I'm not familiar with this plugin. Is there a possiblity that this plugin could alter the application_Id?

latent sundial
#

I asked another Android colleague and he said not yet, I have commented it out. But now the error is still reported

rare vortex
#

Looks like there are some incompatibility problems with your Android tooling. I'd suggest you work with your colleagues who are more familiar with this project to fix it.

latent sundial
#

Yeah, I've only been on the program a few days