Fri, 04 Feb 2022 08:20:24 GMT
Join the conversation at slack.cordova.io
Thu, 03 Feb 2022 10:05:46 GMT
@leo.skrilax91 says
Hi guys ! I‘m back with another question, i’m currently updating an app and i'm facing an issue, this app use the cordova-plugin-app-version plugin but this plugin is deprecated, have you an alternative to this plugin ? Other problem, i have this error message when i try to add device plugin to this project :
Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
Thu, 03 Feb 2022 19:45:17 GMT
@pablo.caselas says
Hi! this is more of a generic android question than a cordova one but I’m trying to add this to my AndroidManifest.xml
<queries>
<package android:name="com.example.store" />
</queries>
Thu, 03 Feb 2022 19:45:33 GMT
@pablo.caselas says
but I am getting the following error:
Missing 'package' key attribute on element package at AndroidManifest.xml:4:9-53
Thu, 03 Feb 2022 19:45:48 GMT
@pablo.caselas says
any ideas of what I am doing wrong?
Thu, 03 Feb 2022 19:46:45 GMT
@pablo.caselas says
https://developer.android.com/guide/topics/manifest/queries-element
Thu, 03 Feb 2022 19:46:55 GMT
@pablo.caselas says
this is what I am trying to achieve
Thu, 03 Feb 2022 21:26:51 GMT
@jcesarmobile says
It’s probably some android manifest schema line missing
Thu, 03 Feb 2022 21:29:55 GMT
@jcesarmobile says
SO answers suggest that your gradle/gradle plugin versions are old and don’t support that, what’s your cordova-android version?
Thu, 03 Feb 2022 22:39:34 GMT
@pablo.caselas says
that makes sense… cordova-android 8.0
Thu, 03 Feb 2022 23:01:08 GMT
@pablo.caselas says
after upgrading to 9.1.0 I am getting a dependency error when trying to build
,2.3]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.nimbusds:nimbus-jose-jwt:8.2 -> net.minidev:json-smart@[1.3.1,2.3], but json-smart version was 2 .3. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto com.microsoft.identity.client:msal@1.0.+ -- Project 'app' depends onto net.minidev:json-smart@{strictly 2.3} -- Project 'app' depends onto com.microsoft.identity.client:msal@{strictly 1.0.1} -- Project 'app' depends onto com.microsoft.identity:common@{strictly 1.0.13} -- Project 'app' depends onto com.nimbusds:nimbus-jose-jwt@{strictly 8.2} For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// <http://github.com/google/play-services-plugins|github.com/google/play-services-plugins> and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file.```
Thu, 03 Feb 2022 23:02:33 GMT
@pablo.caselas says
does that mean that my msal plugin is some how incompatible with the google-services plugin?
Thu, 03 Feb 2022 23:12:55 GMT
@jcesarmobile says
Try with cordova-android 10.x
Thu, 03 Feb 2022 23:37:59 GMT
@pablo.caselas says
On 10.1.1 now I am getting the following error
> No installed build tools found. Install the Android build tools version 30.0.3 or higher.
I checked online and it seems that I ame supposed to run something like./sdkmanager "platforms;android-30"
on$HOME/Library/Android/sdk/tools/bin
but I’m getting an error telling me that$HOME/.android/repositories.cfg could not be loaded.
Fri, 04 Feb 2022 08:13:33 GMT
@jcesarmobile says
I install that from android studio, in sdk manager install sdk 30, make sure you have the display package details or something like that and you install the sdk tools