Solved

Ionic failed to build android app "Cannot resolve symbol hybridcommon" and more


Badge +3

 

How to solve this missing lib on android?

I have installed  cordova and capacitor plugins for ionic by following this guide :

https://ionicframework.com/docs/native/purchases

$ npm install cordova-plugin-purchases@2.3.0 
$ npm install @awesome-cordova-plugins/purchases
$ ionic cap sync

 

package.json I have those :

 

"@awesome-cordova-plugins/core": "5.43.0",

"@awesome-cordova-plugins/purchases": "^5.44.0",

"cordova-annotated-plugin-android": "^1.0.4",

"cordova-plugin-purchases": "^2.3.0",

 

 

icon

Best answer by Andy 4 July 2022, 17:52

View original

3 replies

Badge +3

I found missing file on this repo : 

https://github.com/RevenueCat/purchases-hybrid-common

 

So how to install it on my project ?

Userlevel 5
Badge +8

Hi! 👋🏻 I replied on the github issue, happy to help figure this out. Let’s keep the conversation on the GitHub issue. 

Badge +3

Thanks for @Andy

May this help others

 

Solved with:

Android Studio -> File -> sync project with Gradle files

Reply