简体   繁体   中英

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'.)

The issue is resolved by syncing Gradle files again manually:

在此处输入图片说明

如果在 android 项目文件夹中找不到文件夹capacitor-cordova-android-plugins,则需要运行一个capacitor命令来创建它(并更新插件变量):

npx cap sync

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM