You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v9.1.0 and #1173, the app name is pushed as project name for IntelliJ IDEA / Android Studio, and is supposed to persist.
What does actually happen?
As soon as a Gradle reload is done the project name is automaticaly reset back to android instead of the app name ; the .name file inside .idea/ is deleted by IntelliJ IDEA (same for Android Studio?).
Such reload is done on first project open, sync, with manual "Reload Gradle Project" action, or "Reload All Gradle Projects" button.
Information
Changing project name in Android Studio may have different meanings and solutions (see this so for example).
For Cordova Android it is clear that the project directory inside /platforms has to stay as it is, android, and changing project name is only for the IDE title and "Open Recent" list.
I tried a suggested solution adding rootProject.name = "Hello World" inside settings.gradle at root, without any .name file inside .idea/. It seams fine and persists after Gradle reloads 👍 .
Bug Report
Problem
What is expected to happen?
Since v9.1.0 and #1173, the app name is pushed as project name for IntelliJ IDEA / Android Studio, and is supposed to persist.
What does actually happen?
As soon as a Gradle reload is done the project name is automaticaly reset back to android instead of the app name ; the .name file inside .idea/ is deleted by IntelliJ IDEA (same for Android Studio?).
Such reload is done on first project open, sync, with manual "Reload Gradle Project" action, or "Reload All Gradle Projects" button.
Information
Changing project name in Android Studio may have different meanings and solutions (see this so for example).
For Cordova Android it is clear that the project directory inside /platforms has to stay as it is, android, and changing project name is only for the IDE title and "Open Recent" list.
I tried a suggested solution adding
rootProject.name = "Hello World"
inside settings.gradle at root, without any .name file inside .idea/. It seams fine and persists after Gradle reloads 👍 .Command or Code
then "Open" platforms/android/ with IntelliJ IDEA or Android Studio
Environment, Platform, Device
IntelliJ IDEA 2020 and 2021, and Android Studio(not tested)
Version information
Cordova CLI 10.0.0
Cordova Android 9.1.0
Windows 10
Checklist
The text was updated successfully, but these errors were encountered: