#vinson_95966
1 messages · Page 1 of 1 (latest)
ViewModelProvider.AndroidViewModelFactory.Companion.APPLICATION_KEY is from your application. You'd need to check why the value is null
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
Thanks for sharing! Looking into how to ensure that APPLICATION_KEY isn't null
I don't know why it is null, so I ask for your help
Yup! We are checking on it
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
Can you check if android:name was configured correctly as mentioned in https://stackoverflow.com/questions/56178317/viewmodelprovider-factory-remains-null-on-fragment-using-dagger-and-java-on-andr?
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
Hi @latent sundial I'm taking over this thread
Can I suggest you to use the latest Stripe Android SDK and try again?
However, with the latest sdk, many mistakes were reported in my project, which was difficult to modify
What mistakes?
I started with the latest sdk, but I found more serious problems and chose the lower version
So what's the problem?
The new sdk requires a higher version of gradle, but after upgrading gradle in my project, some plug-in references are missing
What plug-in references?
apply plugin: 'packer'
I'm not familiar with this plugin. Is there a possiblity that this plugin could alter the application_Id?
I asked another Android colleague and he said not yet, I have commented it out. But now the error is still reported
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.
Yeah, I've only been on the program a few days