Running/contributing to the Android plugin
Hi!
First, i am totally new to IntelliJ plugin development. I would love to see this issue fixed, and i decided to test what is going on.
(BTW should i? Eugene Kudelevsky is assigned, but nothing happens on that issue. Maybe it is fixed in a private branch?)
I cloned the IntelliJ community project, and also run getPlugins.bat. Then i made the project and ran IDEA with the shared run config.
But at the plugin chooser dialog, the Android plugin cannot be enabled, the Enable link does nothing.
I also tried to start IDEA from the android module, but it resulted in an exception: classnotfoundexception com.intellij.idea.MainImpl
How can i run the Android plugin to actually see my changes in IDEA?
Thanks,
Csabi
Please sign in to leave a comment.
It seems i actually want to fix this, which is not fixed at all, but assigned to Vladislav Soroka.
I just pushed a change that enables the Android plugin by default when you run IntelliJ IDEA Community Edition with the provided shared run configuration.
Thanks Dmitry, it is indeed working!
Simply running IDEA with the shared config works now, but i tried to Make a Maven Android project. I got a stacktrace:
Error:Internal error: (java.util.ServiceConfigurationError) org.jetbrains.jps.model.serialization.JpsModelSerializerExtension: Provider com.android.tools.idea.jps.model.impl.JpsAndroidGradleModelSerializerExtension not found
java.util.ServiceConfigurationError: org.jetbrains.jps.model.serialization.JpsModelSerializerExtension: Provider com.android.tools.idea.jps.model.impl.JpsAndroidGradleModelSerializerExtension not found
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at com.intellij.util.containers.ContainerUtilRt.copy(ContainerUtilRt.java:179)
at com.intellij.util.containers.ContainerUtilRt.newArrayList(ContainerUtilRt.java:168)
at org.jetbrains.jps.plugin.impl.JpsPluginManagerImpl.loadExtensions(JpsPluginManagerImpl.java:18)
at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.getExtensions(JpsServiceManagerImpl.java:59)
at org.jetbrains.jps.model.serialization.JpsModelSerializerExtension.getExtensions(JpsModelSerializerExtension.java:46)
at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.getSdkPropertiesSerializer(JpsSdkTableSerializer.java:205)
at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.loadSdk(JpsSdkTableSerializer.java:99)
at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.loadSdks(JpsSdkTableSerializer.java:80)
at org.jetbrains.jps.model.serialization.JpsGlobalLoader$SdkTableSerializer.loadExtension(JpsGlobalLoader.java:144)
at org.jetbrains.jps.model.serialization.JpsGlobalLoader$SdkTableSerializer.loadExtension(JpsGlobalLoader.java:137)
at org.jetbrains.jps.model.serialization.JpsLoaderBase.loadComponents(JpsLoaderBase.java:61)
at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalComponents(JpsGlobalLoader.java:83)
at org.jetbrains.jps.model.serialization.JpsGlobalLoader.load(JpsGlobalLoader.java:73)
at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalSettings(JpsGlobalLoader.java:59)
at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:38)
at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:45)
at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:78)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:266)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:242)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:42)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
I am hitting this exact same exception. I was building a regular Java project, not an Android nor Maven project.
The problem went away when I switched to JDK 1.8 to build and run IDEA.