-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova-plugin-intercom crashing build at :app:transformClassesWithDesugarForDebug #591
Comments
Did you post this problem at the |
Did some research for you:
Installing the plugin causes a working build of a new Cordova app to fail, so something is definitely wrong even when you exclude all the other stuff you are using (Ionic, plugins, ...). Unfortunately my error is pretty different to yours though. |
Is there a known good combination of cordova-android and plugin versions that does work? |
Hi @janpio, thanks for looking into it. I contacted the company too and they should be looking into it. However, in their defense, the plugin was working until a couple of days ago. I started encountering the issue around 16th November, give and take a day or too. Used to work with the latest cordova and and plugin version up till then, I believe being Cordova 8, cordova-android 7.1.1 and and plugin version 6.1.0. Re your error being different, the difference is induced when adding the cordova-android-support-gradle-release plugin and forcing a dependency of support libraries version 27 and upwards. |
Can you confirm you get the same error as me without that plugin? |
I confirm the error is identical. Posted stacktrace without the plugin below
It is not necessary in this scenario. However, in my main application there are plugins introducing dependencies to versions of the support libraries which are quite outdated. Hence I had to introduce the plugin to iron different dependencies out.
|
Hm, I can't build with 7.1.1 and the plugin as well, same errors. Maybe something to do with Android tooling? |
Technically it could be it I presume. However that is something completely related to the plugin right? I went through the plugins and intercom itself has For reference, please see the below gradle definitions
|
Yep, that's where I am out: I never understood that gradle dependency version stuff, sorry. But if it happens with a vanilla Cordova project (create with It definitely has nothing to do with My advise: Post this on StackOverflow (with the vanilla Cordova app, not your Ionic app) and try to get Intercom to help. Good luck, please report back when it is solved somehow 💯 |
Thanks a lot @janpio . Yes sure, with great pleasure. Will let you guys know whatever the outcome is :) :D |
FWIW - I had the same error yesterday on my project that also has the intercom plugin. |
Hm, that doesn't really match with my testing the plugin in an isolated way in a new project with no other plugins, does it @Tallyb ? |
Hi guys, I got to the bottom of this. The cordova plugin which I was using had references to the company's native Android SDKs. Their Gradle versioning was in the form of "5.2.+", where the + always resolved to the most recent version of the SDK. They released an update to the native SDK which introduced support library 28, and due to the versioning requirements this caused the Cordova plugin to introduce version 28 of the support libraries as well, breaking any Cordova android builds in the process. Thanks for your assistance guys! |
Ah, that stuff again. These |
I was able to fix that problem in an ionic-app using https://github.com/dpa99c/cordova-android-support-gradle-release. The App settings: My config.xml-Entry is:
This was sufficient for building android on a mac. On our Linux build environment i had to modify the platforms/android/app/build.gradle, adding this entry in the android node android { dexOptions { jumboMode true } .... I managed this using a hook at /hooks/after_platform_add/010_fix_gradle.sh |
Hey, @alan-grixti. What's the intended fix? I'm on the latest version of cordova-plugin-intercom and am still running into this issue. |
Ah, adding this to the |
👋 Dale from Intercom here. I just published 6.2.0 which explicitly points to the last Android SDK version on 27. This should remove the need for some of the fixes discussed above. |
@DaleCantwell thanks for your assistance. @jdq22 I can confirm that @DaleCantwell 's fix works. |
I still get this same issue with 6.2.0 :/ |
Hi,
Whenever I add cordova-plugin-intercom to the solution I get an error during build at :app:transformClassesWithStackFramesFixerForDebug. Added whole output below. Project is an empty Ionic project with only 2 plugins installed, being
cordova-android-support-gradle-release
andcordova-plugin-intercom
. Any assistance is appreciated.For now, what I've tried is:
cordova clean
Plugins list:
The text was updated successfully, but these errors were encountered: