mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(templates): templates cannot be created on first install
This happens because the projects directory does not exists and the save location parameter in templates requires an existing directory.
This commit is contained in:
@@ -76,6 +76,8 @@ fun baseProject(projectName: StringParameter = projectNameParameter(),
|
||||
AndroidUtils.appNameToPackageName(name.value, packageName.value)
|
||||
packageName.setValue(newPackage)
|
||||
}
|
||||
|
||||
Environment.mkdirIfNotExits(Environment.PROJECTS_DIR)
|
||||
|
||||
val saveLocation = stringParameter {
|
||||
name = R.string.wizard_save_location
|
||||
|
||||
Reference in New Issue
Block a user