Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot invoke method toInteger() on null object #781

Open
linxianxi opened this issue Oct 17, 2023 · 2 comments
Open

Cannot invoke method toInteger() on null object #781

linxianxi opened this issue Oct 17, 2023 · 2 comments

Comments

@linxianxi
Copy link

linxianxi commented Oct 17, 2023

my code:

versionCode project.env.get("ANDROID_BUILD_CODE").toInteger()
@rainjiang
Copy link

same here, any solutions?

@angusryer
Copy link

I've encountered this when attempting to change the default .env (which is associated with the debug mode) to something like .env.development.

Keep the file that is associated with the debug mode named .env--this worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants