17
Views
4
Comments
[BLE Plugin] BLE Plugin - Unable to Generate APK When Using Plugin
ble-plugin
Mobile icon
Forge asset by Bruno Martinho
Application Type
Mobile

Hi everyone,

I'm having trouble generating the APK for my mobile app when using a specific Cordova plugin. I've tried building it with different MABS versions (10, 11, and 11.1), but I always encounter the same error during the build process.

I've already checked my configurations and tried different approaches, but nothing seems to work.


Has anyone experienced a similar issue or knows what might be causing this?

Any help would be greatly appreciated!

Thanks in advance!

AndroidBuildLog (5).txt
2023-03-12 08-39-51
Iheb Maatali Riahi

Hi @João Vilelas , As indicated in the log file , there is a  compatibility issue between one of  cordova-plugin-ble-central dependencies (cordova-plugin-compat)   and your Cordova version .

cordova-plugin-compat is deprecated  :

-----------------------------------------------------------------------------------------------------------
[2025-05-14T15:57:01.000Z] [ERROR] [Build] Reason: Couldn't install the Cordova plugin cordova-plugin-ble-central because the plugin dependency cordova-plugin-compat doesn't support this Cordova version.
------------------------------------------------------------------------------------------------------------

[2025-05-14T15:57:01.001Z] [ERROR] [Build] Installing "cordova-plugin-compat" for android

[2025-05-14T15:57:01.001Z] [ERROR] [Build] Plugin doesn't support this project's cordova-android version. cordova-android: 12.0.0+1.3.1, failed version requirement: 

[2025-05-14T15:57:01.001Z] [ERROR] [Build]       <6.3.0




2020-06-02 14-20-36
João Vilelas

Thanks for the reply :)


So I need to update the Cordova version? Yes, how do I do it?

2023-03-12 08-39-51
Iheb Maatali Riahi


You do not need to update your Cordova version. In fact, the issue is the opposite: cordova-plugin-compat is deprecated and should not be used with newer versions of Cordova Android (version 6.3.0+ and beyond).

-> Use an alternative plugin from the Forge

2020-06-02 14-20-36
João Vilelas


Thank you very much for your help, the problem is that there is no other plugin for this purpose.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.