Issue
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
Solution
Update the cordovaAndroidVersion variable in variables.gradle to cordovaAndroidVersion = '10.1.1'
Or downgrade cordova-plugin-file to 6.0.2
Answered By - Julio Cesar

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.