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?

 

4 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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:

drwxr-xr-x  13 alan  staff   442 Oct 20 08:53 .git
-rw-r--r--   1 alan  staff    70 Oct 20 08:53 .gitignore
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 adt-branding
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 adt-ui
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 adt-ui-model
drwxr-xr-x  18 alan  staff   612 Oct 20 08:53 android
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 android-plugin
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 android-test-framework
drwxr-xr-x   3 alan  staff   102 Oct 20 08:53 android-tests
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 android-uitests
drwxr-xr-x   8 alan  staff   272 Oct 20 08:53 common
drwxr-xr-x   9 alan  staff   306 Oct 20 08:53 designer
-rw-r--r--   1 alan  staff  1027 Oct 20 08:53 get_aosp_changes.sh
-rw-r--r--   1 alan  staff   207 Oct 20 08:53 icon-robots.txt
drwxr-xr-x   7 alan  staff   238 Oct 20 08:53 jps-plugin
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 layoutlib
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 manual-tests
drwxr-xr-x   3 alan  staff   102 Oct 20 08:53 native
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 observable
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 perfd-host
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 profilers
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 profilers-ui
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 rt
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 sdk-updates
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 sdk-updates-tests
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 sherpa-ui
drwxr-xr-x  49 alan  staff  1666 Oct 20 08:58 tools-base
drwxr-xr-x   5 alan  staff   170 Oct 20 08:53 uitest-framework
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 ultimate
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 updater-ui
drwxr-xr-x   6 alan  staff   204 Oct 20 08:53 wizard

The repo was fetched from 172.4343.14

commit 669f08cfdb0b104740f3ace3fd680a821d9c5d5f

 

0
Comment actions Permalink

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.

0
Comment actions Permalink

Thank you. That solved the problem.

 

0

Please sign in to leave a comment.