1

I am using Ionic 5.x in order to build a hybrid mobile app. The problem that I am facing is that when I use gradle to manually build the app I get the following error:

Task 'assembleDebug' not found in root project 'android'.

I have searched and could not find a solution to this issue. How do I go about fixing this error as I can't get the mobile app to install on the Android Virtual Device (AVD)?

Thanks

MA_Dev
  • 141
  • 1
  • 2
  • 9
  • Does this answer your question? [Error: ANDROID\_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.](https://stackoverflow.com/questions/26356359/error-android-home-is-not-set-and-android-command-not-in-your-path-you-must) –  Jan 06 '21 at 21:28
  • Unfortunately, I still get the same error. I made sure after updating to run ```source ~/.bashrc``` and I also did the same thing with ```~/.bash_profile```. – MA_Dev Jan 06 '21 at 23:40
  • are you able to just run the emulator by itself? Have you installed an AVD? –  Jan 07 '21 at 00:12
  • Yes, AVD is installed and I am running it through Android Studio. – MA_Dev Jan 07 '21 at 04:56
  • Any suggestions? – MA_Dev Jan 07 '21 at 23:34
  • The only other thing I could suggest is deleting platforms, node_modules, and www. Do a `npm ci` and then `cordova prepare && cordova platform add android` Doesn't hurt to try burning down and resetting the build files. –  Jan 08 '21 at 16:44

0 Answers0