Open gabrielpotumati opened 5 years ago
Fixed now, I do not know exactly how I fixed it, but I will pass what I did: 1 - in: "platforms\android\project.properties" I changed all the summer library to + ex: cordova.gradle.include.1=cordova-plugin-enable-multidex/mstaxi-build.gradle cordova.gradle.include.2=cordova-plugin-firestore/mstaxi-firestore.gradle cordova.system.library.1=com.squareup.okhttp3:okhttp-urlconnection:3.10.0 cordova.system.library.2=com.android.support:support-v4:+ cordova.gradle.include.3=cordova-plugin-mauron85-background-geolocation/mstaxi-dependencies.gradle cordova.system.library.3=com.google.firebase:firebase-core:+ cordova.system.library.4=com.google.firebase:firebase-firestore:+ cordova.system.library.5=com.google.code.gson:gson:+ cordova.gradle.include.4=onesignal-cordova-plugin/mstaxi-build-extras-onesignal.gradle cordova.system.library.6=com.google.android.gms:play-services-location:+ cordova.system.library.7=com.android.support:support-v4:+ cordova.system.library.8=com.android.support:appcompat-v7:+ cordova.system.library.9=com.onesignal:OneSignal:3.10.5
2 - then I installed the plugin: cordova-plugin-enable-multidex
3 - and in platforms\android\build.gradle in project.ext i added multiDexEnabled=true ex: project.ext { defaultBuildToolsVersion="27.0.1" //String defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4 defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default multiDexEnabled=true }
and executed the command cordova clean
Thank you for this information.
Error on build, any idea how to resolve?
cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
BUILD FAILED in 5s
My config.xml is: