Skip to main content
Answer

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

  • July 3, 2022
  • 3 replies
  • 849 views

Forum|alt.badge.img+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",

 

 

Best answer by Andy

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

This post has been closed for comments

3 replies

Forum|alt.badge.img+3

I found missing file on this repo : 

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

 

So how to install it on my project ?


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • Answer
  • July 4, 2022

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


Forum|alt.badge.img+3

Thanks for @Andy

May this help others

 

Solved with:

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