Meteors cordova not building the same as running Cordova Prepare

Hey everyone,

I am currently facing an issue with trying to build an Android project. At the moment when I try to do “Meteor run android” my project crashes with missing dependencies and an error saying:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

However if I go to the “.meteor/local/cordova-build” folder, delete the Android folder under platforms and run “cordova prepare” then “cordova run android” the project builds fine and I am able to run my app.

Looking into this more I noticed my “project.properties” folder is VASTLY different when building from Meteor’s cordova vs just “cordova prepare”:

Building from meteor:

target=android-29
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.google.android.gms:play-services-location:16.0.0
cordova.system.library.2=com.android.support:appcompat-v7:27.+
cordova.gradle.include.1=cordova-plugin-meteor-webapp/mobile-build-extras.gradle
cordova.system.library.3=com.squareup.okhttp3:okhttp:4.5.0
cordova.gradle.include.2=cordova-plugin-background-fetch/mobile-build.gradle
cordova.system.library.4=com.google.android.gms:play-services-location:16.0.0
cordova.system.library.5=com.android.support:appcompat-v7:27.+
cordova.system.library.6=com.squareup.okhttp3:okhttp:4.5.+
cordova.system.library.7=org.greenrobot:eventbus:3.2.0
cordova.system.library.8=com.intentfilter:android-permissions:0.1.8
cordova.system.library.9=org.slf4j:slf4j-api:1.7.25
cordova.system.library.10=com.github.tony19:logback-android:2.0.0
cordova.gradle.include.3=cordova-background-geolocation-lt/mobile-build.gradle
cordova.system.library.11=com.android.support:support-v4:27.+

Building from Cordova directly:

target=android-29
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-plugin-background-fetch/mobile-build.gradle
cordova.system.library.1=com.google.android.gms:play-services-location:11.2.0
cordova.system.library.2=com.android.support:appcompat-v7:26.1.0
cordova.system.library.3=com.squareup.okhttp3:okhttp:3.12.+
cordova.system.library.4=org.greenrobot:eventbus:3.0.0
cordova.system.library.5=com.intentfilter:android-permissions:0.1.8
cordova.system.library.6=org.slf4j:slf4j-api:1.7.25
cordova.system.library.7=com.github.tony19:logback-android:2.0.0
cordova.gradle.include.2=cordova-background-geolocation-lt/mobile-build.gradle
cordova.system.library.8=com.android.support:support-v4:27.+
cordova.gradle.include.3=cordova-plugin-genius-scan/mobile-build.gradle
cordova.system.library.9=com.android.support:support-v4:27.0.1
cordova.system.library.10=com.android.support:appcompat-v7:27.0.1
cordova.system.library.11=com.android.support.constraint:constraint-layout:1.1.3
cordova.system.library.12=com.parse.bolts:bolts-tasks:1.4.0
cordova.gradle.include.4=cordova-plugin-meteor-webapp/mobile-build-extras.gradle
cordova.system.library.13=com.squareup.okhttp3:okhttp:3.9.1

This all started happening when I tried to install the “cordova-plugin-genius-scan” plugin. It works great with cordova on it’s own, but Meteor is breaking something along the way. Anyone have any idea on how I can fix this?

Versions:
Meteor@2.2
Cordova@10
Android@9
Gradle@6.5
AndroidSDK@>27