Error after upgrading to Capacitor v3 package com.getcapacitor.annotation does not exist

Viewed 3061

My angular ionic application was working fine on Android platform before updating capaitor to version 3. After I update to Version3 I got this error whe I try to run my app on the emulator from Android studio

C:\ionic\dhaman-customer-service\node_modules@capacitor\storage\android\src\main\java\com\capacitorjs\plugins\storage\StoragePlugin.java:8: error: package com.getcapacitor.annotation does not exist import com.getcapacitor.annotation.CapacitorPlugin; ^ I am using Storage plugin in my application

The following is the out put of npx cap doctor command Latest Dependencies:

@capacitor/cli: 2.4.7 @capacitor/core: 2.4.7 @capacitor/android: 2.4.7 @capacitor/ios: 2.4.7

Installed Dependencies:

@capacitor/ios: not installed @capacitor/cli: 3.0.0-rc.0 @capacitor/android: 2.4.7 @capacitor/core: 3.0.0-rc.0

[success] Android looking great!

this is acreen shot enter image description here

2 Answers

problem fixed after Upgrading capacitor/android to version 3 beta

npm install @capacitor/android@3.0.0-beta.3

Related