Skip to main content
Solved

Error after updating Cordova SDK to 4.0.0


Forum|alt.badge.img+6

Hello,

I had to update the SDK to v4.0.0 after Google Play updated their library and now I get the following error from Cordova:

> Task :app:checkDebugAarMetadata FAILED

 

Any suggestions how to solve this?

Best answer by Martin Géč

SOLVED by the following steps:

With these updates I am also able to meet the Play Store requirement to compile for API 33+

Both platforms (iOS & Android) work as expected now.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

4 replies

Forum|alt.badge.img+6
  • Author
  • Helper
  • 9 replies
  • November 10, 2023

And now I checked iOS as well and the app doesn’t even start. It builds successfully but the simulator is just blank. 

This is the log from XCode:
2023-11-10 23:06:39.258280+0100 Breathjoy[43546:268480] Apache Cordova native platform version 6.2.0 is starting.
2023-11-10 23:06:39.258371+0100 Breathjoy[43546:268480] Multi-tasking -> Device: YES, App: YES
2023-11-10 23:06:39.353881+0100 Breathjoy[43546:268480] The preference key "AllowNewWindows" is not defined and will default to "FALSE"
2023-11-10 23:06:39.354818+0100 Breathjoy[43546:268480] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE"
2023-11-10 23:06:39.357383+0100 Breathjoy[43546:268480] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE"
2023-11-10 23:06:39.357450+0100 Breathjoy[43546:268480] The preference key "Allow3DTouchLinkPreview" is not defined and will default to "TRUE"
2023-11-10 23:06:39.357506+0100 Breathjoy[43546:268480] CDVWebViewEngine will reload WKWebView if required on resume
2023-11-10 23:06:39.357559+0100 Breathjoy[43546:268480] Using WKWebView
2023-11-10 23:06:39.357777+0100 Breathjoy[43546:268480] [CDVTimer][console] 0.025988ms
2023-11-10 23:06:39.357877+0100 Breathjoy[43546:268480] [CDVTimer][handleopenurl] 0.030994ms
2023-11-10 23:06:39.358553+0100 Breathjoy[43546:268480] Unlimited access to network resources
2023-11-10 23:06:39.358692+0100 Breathjoy[43546:268480] [CDVTimer][intentandnavigationfilter] 0.732899ms
2023-11-10 23:06:39.358845+0100 Breathjoy[43546:268480] [CDVTimer][gesturehandler] 0.038028ms
2023-11-10 23:06:39.405280+0100 Breathjoy[43546:268480] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x60000175c5c0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2023-11-10 23:06:39.452627+0100 Breathjoy[43546:268480]      HALC_ShellDevice.cpp:2606   HALC_ShellDevice::RebuildControlList: couldn't find the control object
2023-11-10 23:06:39.464200+0100 Breathjoy[43546:268480] [CDVTimer][backgroundmode] 105.275989ms
2023-11-10 23:06:39.464289+0100 Breathjoy[43546:268480] [CDVTimer][backgroundmode] 0.005007ms
2023-11-10 23:06:39.464602+0100 Breathjoy[43546:268480] SignInWithApple initialize
2023-11-10 23:06:39.464666+0100 Breathjoy[43546:268480] [CDVTimer][signinwithapple] 0.319958ms
2023-11-10 23:06:39.465786+0100 Breathjoy[43546:268480] [CDVTimer][file] 1.017094ms
2023-11-10 23:06:39.466246+0100 Breathjoy[43546:268480] [CDVTimer][inappbrowser] 0.254989ms
2023-11-10 23:06:39.467138+0100 Breathjoy[43546:268480] [CDVTimer][universallinks] 0.759006ms
2023-11-10 23:06:39.467188+0100 Breathjoy[43546:268480] [CDVTimer][TotalPluginStartup] 109.444022ms
2023-11-10 23:06:40.268469+0100 Breathjoy[43546:268480] IAB.close() called but it was already closed.
2023-11-10 23:06:40.634768+0100 Breathjoy[43546:268480] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"
2023-11-10 23:06:40.702661+0100 Breathjoy[43546:268480] BuildInfo packageName    : "org.breatharia.breathjoy"
2023-11-10 23:06:40.702742+0100 Breathjoy[43546:268480] BuildInfo basePackageName: "org.breatharia.breathjoy"
2023-11-10 23:06:40.702797+0100 Breathjoy[43546:268480] BuildInfo displayName    : "Breathjoy"
2023-11-10 23:06:40.702858+0100 Breathjoy[43546:268480] BuildInfo name           : "Breathjoy"
2023-11-10 23:06:40.702913+0100 Breathjoy[43546:268480] BuildInfo version        : "4.3.0"
2023-11-10 23:06:40.702966+0100 Breathjoy[43546:268480] BuildInfo versionCode    : "4.3.0"
2023-11-10 23:06:40.703026+0100 Breathjoy[43546:268480] BuildInfo debug          : YES
2023-11-10 23:06:40.703070+0100 Breathjoy[43546:268480] BuildInfo buildType      : ""
2023-11-10 23:06:40.703278+0100 Breathjoy[43546:268480] BuildInfo buildDate      : "2023-11-10T23:06:31+01:00"
2023-11-10 23:06:40.703423+0100 Breathjoy[43546:268480] BuildInfo installDate    : "2023-07-07T13:07:00+02:00"
2023-11-10 23:06:40.703506+0100 Breathjoy[43546:268480] BuildInfo flavor         : ""
2023-11-10 23:06:40.703611+0100 Breathjoy[43546:268480] BuildInfo init: 0.0020 sec(1982208 nsec): Return
 


Forum|alt.badge.img+6
  • Author
  • Helper
  • 9 replies
  • November 10, 2023

I even tried v3.0.0 and the same blank screen.

Is there some migration guide from 2.4.x to upper versions?


Forum|alt.badge.img+6
  • Author
  • Helper
  • 9 replies
  • November 12, 2023

Now I see that from 3.0.0 there are breaking changes in the code in case someone already implemented version 2.x.x, so I have to update the code according to this https://github.com/RevenueCat/cordova-plugin-purchases/blob/main/CHANGELOG.md

Can please someone confirm that I am right? :)


Forum|alt.badge.img+6
  • Author
  • Helper
  • 9 replies
  • Answer
  • November 12, 2023

SOLVED by the following steps:

With these updates I am also able to meet the Play Store requirement to compile for API 33+

Both platforms (iOS & Android) work as expected now.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings