You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/05/31 20:34:04 UTC

[GitHub] [cordova-android] JorisDebonnet commented on issue #821: Could not get unknown property 'cdvCompileSdkVersion'

JorisDebonnet commented on issue #821:
URL: https://github.com/apache/cordova-android/issues/821#issuecomment-851673503


   > 
   > 
   > I'm getting the same issue with intercom plugin...
   > Any solution yet?
   
   I found a workaround, but it's dirty 😕
   
   1. Intercom's Cordova plugin, even the very most recent one, wants `cdvCompileSdkVersion` and `cdvBuildToolsVersion` values, so okay fine, let's created them. They go as extra lines into `variables.gradle`. The first is simply a copy of the existing `compileSdkVersion` there, and for the `cdvBuildToolsVersion` value, I looked up the latest installed version via Tools > SDK Manager > Build tools.
   2. The next thing it complains about is that `applicationId` is being set by a plugin/library, which is forbidden. This is where it gets dirty, because I could only fix this by editing a file in `node_modules`. Specifically, I commented out lines 7 and 8 in `node_modules/cordova-plugin-intercom/src/android/build-extras-intercom.gradle`. Then, Android Studio was happy to build my project, and Intercom works. (This might have bad side-effects if a user has another app with the Intercom plugin. I did not test this.) I added this to my documentation because I'll need to edit that file after each npm command...
   
   I'm sure this is very bad practice etc, probably caused by not understanding what is actually wrong. I hope to solve it better in the future, but it seems to work for now. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org