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/12/06 16:09:33 UTC

[GitHub] [cordova-android] craig-at-rsg opened a new issue #1383: Kotlin version not used for plugin

craig-at-rsg opened a new issue #1383:
URL: https://github.com/apache/cordova-android/issues/1383


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   The GradlePluginKotlinVersion preference should be used for the entire build.
   
   
   ### What does actually happen?
   The build.gradle file has a kotlin version hardcoded, so the value set with GradlePluginKotlinVersion isn't used for the entire build.
   
   
   ## Information
   When using `<preference name="GradlePluginKotlinVersion" value="1.6.0" />` in my config.xml, my custom plugin fails with:
   
   `Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.`
   
   Manually setting the ext.kotlin_version in the build.gradle files gets my project building successfully. 
   
   
   
   ### Command or Code
   cordova build android
   
   
   
   ### Environment, Platform, Device
   Mac, Android, any.
   
   
   
   ### Version information
   Not sure if it's limited to this version, but we're currently on cordova-android 9.1.0.
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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


[GitHub] [cordova-android] breautek commented on issue #1383: Kotlin version not used for plugin

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1383:
URL: https://github.com/apache/cordova-android/issues/1383#issuecomment-986927482


   cordova-android@10 has a complete rewrite of how build variables are managed, so this issue shouldn't be a problem on cordova-android@10. I'd suggest upgrading to cordova-android@10 if possible. A backport release won't be made (although feel free to fork cordova-android yourself to backport a patch to cordova-android@9 if this is a blocking issue and cordova-android@10 upgrade isn't feasible).
   
   For this reason I'll be closing this ticket. However, if you find that this issue still exists on cordova-android@10, we can reopen this issue and update the description accordingly.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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


[GitHub] [cordova-android] breautek closed issue #1383: Kotlin version not used for plugin

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1383:
URL: https://github.com/apache/cordova-android/issues/1383


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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