Cannot read property 'setEnvironment' of undefined
CezarCobuz opened this issue · 3 comments
CezarCobuz commented
Getting the error:
TypeError: Cannot read property 'setEnvironment' of undefined
on the following line:
// Set the environment before the payment request
GooglePay.setEnvironment(GooglePay.ENVIRONMENT_TEST);
How can I solve this? Has anyone else bumped into this problem?
sorokin0andrey commented
@CezarCobuz Have you solved your problem?
andrew528i commented
Had the same promblem. watchman watch-del-all
and re-renning react-native run-android
solved it for me
JollyGolf commented
I had the same problem. Just 'clean and rebuild'. Or check if library properly linked and try linking manually.
Close the issue, if it helped you.