🐛 Describe the bug
🐛 Problem
Running the project using flutter run fails with the following error:
null cannot be cast to non-null type kotlin.String
The issue occurs in android/app/build.gradle.kts when accessing keystore properties like:
keyAlias = keystoreProperties["keyAlias"] as String
If key.properties file is not present (which is expected for new contributors), these values become null and cause a crash.
Expected Behavior:
The project should run successfully without requiring key.properties, especially for debug builds.
Suggested Fix:
- Safely handle null values in keystoreProperties
- OR use debug signing config when key.properties is missing
- Add key.properties.example for contributor guidance
Additional Context:
This issue affects new contributors trying to set up the project locally and creates unnecessary friction.
🐛 Describe the bug
🐛 Problem
Running the project using
flutter runfails with the following error:null cannot be cast to non-null type kotlin.String
The issue occurs in
android/app/build.gradle.ktswhen accessing keystore properties like: