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.

0
7 comments
Avatar
Permanently deleted user

Hi,

Any luck on this?

0

Waiting for feedback from colleague, stay tuned

0
Avatar
Permanently deleted user

Hi Yann Cebron,

Did you able to get the feedback?

Is there any other way to initiate the project build process from the plugin? 

 

0

Sorry, not yet. I'm not aware of other ways

0
Avatar
Permanently deleted user

Hi Yann Cebron: did you hear anything from your colleague?  

0
Avatar
Permanently deleted user

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!

0

Sorry for delay, please try using com.intellij.task.ProjectTaskManager methods instead.

0

Please sign in to leave a comment.