Issue
There is this Project i am dealing with, you can check it's Git Repository here : Arcore repo
- The Project builds successfully and runs on emulator or physical device while using android Studio .
Problem: I cloned this project and opened it with vscode, and run ./gradlew clean build
; this goes as expected!!
- But it seems to always get stack at :
./gradlew run
with "error" run task is not found in the root project
Solution
For Future visitors of this thread, I will answer my Question here:
- As a contribuer stated to implement
com.android.application
plugin to root build.gradle, this did not implement theapplication
andrun
task within the root project. Instead the plugin needed simply was:
// root build.gradle
plugins {
id('application')
}
- Now re-running
./gradlew build
does add the run task, provided by the plugin above .
Answered By - Archiee
Answer Checked By - Gilberto Lyons (JavaFixing Admin)