You should implement platform channel for executing some java code. you should open another project. First, you move your mouse pointer to the android folder and select android folder now click right button and select flutter. Click on the open android module .