0

I am writing an Android app that was started in Android Studio, but I would like to be able to work on the app using AIDE as well, but the structure used by AIDE to generate the 'gen' folder (where the R class is stored) is different from Android Studio, causing conflicts that can only be resolved by adding and removing import statements for the R class depending upon which IDE I am using. While I could do this, I would rather change the structure the Android Studio uses to generate this folder so that the project would be compatible with both IDEs without me needing to intervene. I do not want the change to be system-wide for AIDE, but rather only for this project. I could I go about doing this?

DaveTheMinion
  • 664
  • 3
  • 22
  • 45
  • set `your_wanted_build_path` to `buildDir ` in top build.gradle. [The_reference](http://stackoverflow.com/questions/23340946/gradle-global-build-directory) – Ninja Jan 28 '16 at 08:44
  • @Ninja I do not have any past experience with Gradle, and do not understand the instructions in the reference. I'm also not sure which build.gradle I should use since I have two of them. – DaveTheMinion Jan 28 '16 at 19:22
  • hi, I commit my demo project about [change default gen folder](https://github.com/jiachenning/GradlePlayground/blob/master/build.gradle) – Ninja Jan 29 '16 at 06:29
  • @Ninja This allows me to change where the data is stored, but it does not enable me to change the "generated" folder name to "gen", which I also need to do. – DaveTheMinion Jan 29 '16 at 18:53
  • Sorry,I don't know how to rename the "generated" folder, maybe use shell script is a workaround. – Ninja Jan 30 '16 at 07:18

0 Answers0