Closed dentep closed 2 years ago
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.
Getting the same error
I'm also facing the same issue. Any updates please? Thanks a lot
I think you should export the VERSION_NAME variable manually before running codepush, or running this command to load the .env file into the console
export $(grep -v '^#' .env | xargs)
I was gettings the same error with the following files and settings:
# android/gradle.properties
versionName=1.23.5
# android/app/build.gradle
android {
...
defaultConfig {
...
versionCode project.getProperties().get("versionCode").toInteger()
versionName project.getProperties().get("versionName")
}
...
}
To solve the issue, I just made the following change in the build.gradle file:
# android/app/build.gradle
android {
...
defaultConfig {
...
versionCode project.getProperties().get("versionCode").toInteger()
- versionName project.getProperties().get("versionName")
+ versionName project.versionName
}
...
}
I have built an app that collects the env props in React Native, but codepush is unable to read the version name from those files.
Steps to Reproduce
Expected Behavior
Command runs without errors and finishes the codepush process
Actual Behavior
Command throws an error: "No property named env.get(VERSION_NAME) exists in the android/gradle.properties file".
Environment