Cordova Android Error :app:transformclasseswithdesugarfordebug When Adding Plugin
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 emp
Solution 1:
The actual error causing the build failure is this:
AAPT: error: resource android:attr/dialogCornerRadius not found.
As outlined in this answer, the reason for this error is when the compileSdkVersion does not match the Android Support Library version.
Since cordova-android@7.1.0, the compileSdkVersion has been set to 27.
Therefore check your platforms/android/app/build.gradle
and see if it contains some references to an earlier version of the Support Library, e.g.:
compile"com.android.support:appcompat-v7:26.+"
If so, then a plugin in your project is probably pinning that version and causing the conflict.
One potential solution is to use cordova-android-support-gradle-release to override the version of the Support Library specified by other plugins:
cordova plugin add cordova-android-support-gradle-release--variable ANDROID_SUPPORT_VERSION=27.+
Post a Comment for "Cordova Android Error :app:transformclasseswithdesugarfordebug When Adding Plugin"