Could not set unknown property 'ideDirectory' for task ':runIde' of type org.jetbrains.intellij.tasks.RunIdeTask
Answered
I am trying out an Android Studio Plugin with the new IntelliJ Plugin SDK and ran into the following error when building the code using IntelliJ Ultimate Edition.
Build file '/Users/hle3/dev/plugin/build.gradle' line: 35
A problem occurred evaluating root project 'plugin'.
> Could not set unknown property 'ideDirectory' for task ':runIde' of type org.jetbrains.intellij.tasks.RunIdeTask.
* Try:
Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
From the error, it looks like that ideDirectory
is an unknown property, but according to the doc https://plugins.jetbrains.com/docs/intellij/android-studio.html#configuring-the-plugin-pluginxml-file, it is how you configure to run your plugin in android studio.
Here's my build.gradle
file
|
Please sign in to leave a comment.
The docs have been fixed https://github.com/JetBrains/gradle-intellij-plugin/issues/768
thanks Yann Cebron for the reply. yes, the document was fixed and I tried the new `ideDir` attribute and kept running into issue. I'll post it again here.
I am getting a different error this time, complaining that
ideDir
cannot take a string. Could you provide an example of what ideDir path should look like to point to Android Studio?I've looked at the README and the definitions of
path
are different in different places of the documentation.Please help provide a working example for ideDir. It doesn't take a string and from the doc I have trouble getting it to work.
Thanks
Use e.g. `org.gradle.api.Project#file(java.lang.Object)`
thanks for the reply -- i'll give Directory a try.
The official Android Studio plugin documentation is still wrong.
https://plugins.jetbrains.com/docs/intellij/android-studio.html. This code will not run because ideDir doesn't take a string. Could you please ask the team to update this to something that developers can work with?
Thanks
Yann Cebron
Did the team get a chance to update https://plugins.jetbrains.com/docs/intellij/android-studio.html. documentation.
The `ideDir` is still there and it is not usable because ideDir does not take a string.
Please update
Use e.g. org.gradle.api.Project#file(java.lang.Object) like `file('path')`