How to fix "Error:Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enabled=true"
I am using a Android project with Kotlin. The project is building successfully. But when I try to build the project from my plugin the build get failed giving following error.
I am using the following code to handle the build process from my plugin.
if (!CompilerManager.getInstance(project).isUpToDate(compileScope)) {
final CompileStatusNotification callback = new CompileStatusNotification() {
@Override
public void finished(boolean aborted, int errors, int warnings, CompileContext compileContext) {
}
};
CompilerManager.getInstance(project).make(compileScope, callback);
}
The above code is working fine for JAVA projects but not working for Android project which uses Kotlin.
Can someone please help me to solve this issue.
Please sign in to leave a comment.
Hi,
Any luck on this?
Waiting for feedback from colleague, stay tuned
Hi Yann Cebron,
Did you able to get the feedback?
Is there any other way to initiate the project build process from the plugin?
Sorry, not yet. I'm not aware of other ways
Hi Yann Cebron: did you hear anything from your colleague?
Hi Yann Cebron: since I got no reply from you I assume that you also were not able to get an reply from your colleague. In that case I assume that there is no workaround to build a Android project which uses Kotlin using the Plugin API. If you able to find any updates regarding this, please update this issue.
Thanks!
Sorry for delay, please try using com.intellij.task.ProjectTaskManager methods instead.