building IDEA without running IDEA: android-plugin
Answered
In the past, I have been able to build IDEA CE without running IDEA, but I am having a problem trying to do this with 2017.2.5. The error message I get is:
The following modules from productProperties.productLayout.bundledPluginModules aren't found in the project: [android-plugin]
I have run getPlugins.sh to get the code for the android plugin, but I do not know how to build and install the android-plugin without running IDEA to do it.
Is there a way?
Please sign in to leave a comment.
You don't need to build the android plugin, the build scripts will do it automatically. Please make sure that you have the actual revision of .idea/modules.xml file checked out, and it isn't modified locally.
I believe I have the correct modules.xml file, but it is not consistent with what is in the repo.
The error message is:
The following modules from 'android-plugin' plugin aren't found in the project: [android-gradle-jps]
The modules.xml file says:
<module fileurl="file://$PROJECT_DIR$/android/android-gradle-jps/android-gradle-jps.iml" filepath="$PROJECT_DIR$/android/android-gradle-jps/android-gradle-jps.iml" group="android" />
The android directory contains:
The repo was fetched from 172.4343.14
commit 669f08cfdb0b104740f3ace3fd680a821d9c5d5f
Looks like your repositories are inconsistent: you have old version of 'intellij-community' repository and new version of 'android' repository. As our Readme says, you need to check out the same branch/tag in all 3 git repositories: intellij-community, android, and android/tools-base.
Thank you. That solved the problem.