When I generate the apk with cordova
I add the android platform
cordova platform add android
then i build the app
cordova build android
The application is generated.
But how do I know what api is taking from the sdk (if I install several in my sdk). ?
You can check this in the file:
Which is generated when executing the command. You can find the version specifically in the lines:
If you need to modify the android version you can run the cordova platform add android command specifying the x version as follows:
Greetings.
First you need to know the following definitions:
Now to know the version when the project is generated:
check inside the file
or for Cordova Android 7.0.0 inside:
there you will find the aforementioned properties.
These values can be overwritten within the file,
config.xml
you can define the version, define the minimum SDK to use and the target with which your application will be created.You can find it in the AndroidManifest.xml file , in my case I have it located in the "platforms/android/AndroidManifest.xml" path, you are looking for the following:
Or you can look in your config.xml file
I hope it helps you!