Home > Blockchain >  Could Gradle Java project run on VSCode
Could Gradle Java project run on VSCode

Time:10-29

There is this Project i am dealing with, you can check it's Git Repository here : Arcore repo

  • The Project builds succesfully and runs on emulator or physical device while using android Studio .

Problem: is, could this work using Vscode:

  • I did clone the Project and run successfully :

./gradlew clean build

  • But it seems to always get stack at :

./gradlew run

with "error" run task is not found in the root project

  • Any clarification on this!!?

CodePudding user response:

Just add this code to your build.gradle file:

plugins {
    id 'com.android.application' 
}

The com.android.application plugin already includes the task run, so your error should be fixed.

For more information regarding this plugin, read the official documentation here (Android), and here.

  • Related