Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Unable to find module with Gradle path ':capacitor-cordova-android-plugins'

I'm developing a mobile app with Ionic 4, Capacitor and some Cordova plugins and have run into a problem when attempting to run the app on Android. Android Studio refuses to run the project and prints the following error:

ERROR: Unable to find module with Gradle path ':capacitor-cordova-android-plugins' (needed by module 'app'.)
like image 650
mkkekkonen Avatar asked Jan 19 '20 07:01

mkkekkonen


2 Answers

If you cant find the folder capacitor-cordova-android-plugins inside the android project folder, you need to run a capacitor command to create it (and update plugin variables):

npx cap sync
like image 82
Renato Probst Avatar answered Nov 07 '22 06:11

Renato Probst


The issue is resolved by syncing Gradle files again manually:

enter image description here

like image 45
mkkekkonen Avatar answered Nov 07 '22 08:11

mkkekkonen