Home > Enterprise >  Android Studio error with capacitor-cordova-plugins
Android Studio error with capacitor-cordova-plugins

Time:10-06

Hello i am trying to test my Capacitor 3 app with Android Studio and i am getting an error about the cordova plugins that i am using. I tried everything i found online but i am still getting the error.

Delete ./android folder npm install @capacitor/android then add android again npx cap add android finally sync npx cap sync

still error

tried to sync file with Gradle in Android Studio File and Sync Project with Gradle Files

still error

any help

the error i am getting is

cannot find symbol
import org.apache.cordova.CordovaPluginPathHandler;
                         ^
  symbol:   class CordovaPluginPathHandler
  location: package org.apache.cordova

enter image description here

CodePudding user response:

Update the cordovaAndroidVersion variable in variables.gradle to cordovaAndroidVersion = '10.1.1'

Or downgrade cordova-plugin-file to 6.0.2

  • Related