vue-cli-plugin-capacitor icon indicating copy to clipboard operation
vue-cli-plugin-capacitor copied to clipboard

How to upgrade capacitor version 3?

Open ibalaji777 opened this issue 3 years ago • 2 comments

I need to upgrade capacitor v3 from v2 .any docs for that?

ibalaji777 avatar Jun 10 '21 08:06 ibalaji777

we can update manually in package.json , i know,i need to configure twice times to update v2 to v3 however i want to run vue add capacitor then i reinstall latest packages again .

i feel better .if package option given in vue add capacitor while run (choose v2, choose v3)

ibalaji777 avatar Jun 11 '21 05:06 ibalaji777

i am facing issue after i updated v3 it working =>npx cap run android but when i run npm run capacitor:serve it launching android studio but showing error Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'.

full error


Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

ibalaji777 avatar Jun 11 '21 06:06 ibalaji777