You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/16 21:45:49 UTC

[GitHub] [cordova-android] ath0mas opened a new issue #1209: Android Studio resets project name on Gradle reload

ath0mas opened a new issue #1209:
URL: https://github.com/apache/cordova-android/issues/1209


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   Since [v9.1.0](https://github.com/apache/cordova-android/blob/master/RELEASENOTES.md#910-apr-09-2021) 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
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   Changing project name in Android Studio may have different meanings and solutions (see [this so](https://stackoverflow.com/questions/18276872/change-project-name-on-android-studio) 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
   <!-- What command or code is needed to reproduce the problem? -->
   ```
   cordova create hello com.example.hello "Hello World"
   cd hello/
   cordova platform add android
   ```
   then "Open" _platforms/android/_ with IntelliJ IDEA or Android Studio
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   IntelliJ IDEA 2020 and 2021, and Android Studio(not tested)
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova CLI 10.0.0
   Cordova Android 9.1.0
   Windows 10
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] erisu closed issue #1209: Android Studio resets project name on Gradle reload

Posted by GitBox <gi...@apache.org>.
erisu closed issue #1209:
URL: https://github.com/apache/cordova-android/issues/1209


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org